Archive: CreateShortCut problem with args


CreateShortCut problem with args
hello,

i try to create a shorcut with a command line arg :
it is supposed to look like :
putty.exe @test.com
the line entered in the shortcut to make it work :
"C:\Program Files\test\putty.exe" @test.com
so i try :
CreateShortCut "$DESKTOP\puttytest.lnk" '"$INSTDIR\putty.exe" @test.com'
but it creates a shortcut with a "c:\" before the real
pathname :
"C:\"C:\Program Files\IntegragenTunnelKit\putty.exe" @integragen.fr"

any ideas to create a working shortcut ??

paul


From the manual:

CreateShortCut link.lnk target.file [parameters] [icon.file][icon_index_number] [start_options] [keyboard_shortcut]
The parameters should NOT be included with the path name, it should come after it in a different pair of quotes...
In your case: CreateShortcut "$DESKTOP\puttytest.lnk" "$INSTDIR\putty.exe" "@test.com"

many thanks.


I love Putty by the way. :)