Create a shortcut and add an icon using bat of itself

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
julesverne
Posts: 81
Joined: 19 Nov 2013 00:41

Create a shortcut and add an icon using bat of itself

#1 Post by julesverne » 11 Dec 2013 16:54

I tried to clarify as much in the subject best I could with the amount of spaces it gives. Basically, is it possible to?:

#1 have the bat create a shortcut of itself in the same directory as the bat.
#2 have it add an icon to the shortcut
#3 pinning it to the start menu automatically would be cool too.
#4 start another instance of itself, starting it with the shortcut
#5 closing out of the first instance
#6 having the new instance know to bypass this routine.


Sounds ridiculous, I know.. but it's for different computers and different users. Trying to make it easier for them to find it and have the bat file have an icon.

thanks in advance!

Jules

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Create a shortcut and add an icon using bat of itself

#2 Post by foxidrive » 11 Dec 2013 19:32

You can write the configuration routine to run only if an /install parameter is provided on the command line.

Creating shortcut and icon are something for you to google about. They depend on the OS too I think.
The startup folder also changes depending on OS.

Post Reply