Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
jamesfui
- Posts: 50
- Joined: 27 Mar 2010 23:00
#1
Post
by jamesfui » 03 Apr 2010 05:49
Is there another WAY to include the shortcut.exe cz everytime when i need to use the shortcut command, i need to include where its the shortcut.exe then i can create those folder shortcut..
if i lost the file (shortcut.exe) what am i gonna do?
so it there a method to add in this shortcut command in bat??
so we can use it willingly

-
avery_larry
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
#2
Post
by avery_larry » 05 Apr 2010 09:54
If you're on a network, you can put it in a common location and reference it with full path all the time
f:\public\shortcut.exe
If it's in one of the standard directories on every machine you could use
"%windir%\system32"
or something similar:
"%programfiles%\my software\shortcut.exe"