create shortcut in .bat

May 5, 2012 at 10:23:46
Specs: Windows XP
i am making a .bat file to put on a disc i need a command that will give that file on the disk a desktop shortcut of that file

See More: create shortcut in .bat

Report •


#1
May 5, 2012 at 11:42:25
When you've created the disc, open a window shwing it's contents.
Now, while holding down the 'Alt' key, left-click and drag the batch file on to the desktop, then release. There is your shorcut.

Don't forget that the shortcut won't work if that CD isn't in the drive, nor will it work if the CD drive-letter changes.


Report •

#2
May 7, 2012 at 02:39:13
Yeah thanks i already knew that but i need the .bat file to create the shortcut for me so that i dont have to do it i know it sounds a bit stupid and it is a complicated situation but click and drag isnt an option

Report •

#3
May 7, 2012 at 05:13:21
There is no way to do so from the Command Prompt without using a third party utility. The typical recommendation is to use VBScript.

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
May 12, 2012 at 03:16:04
ok then how do it in the vbscript

Report •

#5
May 17, 2012 at 11:45:43
please help

Report •


Ask Question