michiel
20th December 2002 12:33 UTC
Shortcut with parameters
How can i make an shortcut that executes an command with parameters
I have created an shortcut like this:
CreateShortCut "Start.lnk" '"C:\Start.exe" -k install'
And what i get is an schortcut with the commando
"C:\"C:\Start.exe" -k install"
What i want is the next shortcut:
"C:\Start.exe" -k install
But How???? :confused:
kichik
20th December 2002 12:40 UTC
It's in the FAQ:
I am having problems with CreateShortCut
Make sure you have separated the parameters from the target file.
For example, if you want to create a shortcut to notepad with $INSTDIR\Readme.txt as a parameter don't use:
CreateShortcut
"myshortcut.lnk""notepad.exe$INSTDIR\\Readme.txt"
Use two separate strings:
CreateShortcut
"myshortcut.lnk""notepad.exe""$INSTDIR\\Readme.txt"