Archive: CreateShortCut quotes problem


CreateShortCut quotes problem
Hi,

I want to create a shortcut that does the same as

start=>run=> rundll32.exe desk.cpl,InstallScreenSaver C:\Program Files\test\test.scr

CreateShortCut "$SMPROGRAMS\test\Install.lnk" "$SYSDIR\rundll32.exe desk.cpl,InstallScreenSaver $INSTDIR\test.scr" "" "" 0

I tried it this way but it always puts quotes in the target so it doesn't work anymore: "rundll32.exe desk.cpl,InstallScreenSaver C:\Program Files\test\test.scr"

How can I create a shortcut without quotes being displayed in the target?

Greets!


Check the FAQ: http://forums.winamp.com/showthread....hreadid=102650


Originally posted by Joost Verburg
Check the FAQ: http://forums.winamp.com/showthread....hreadid=102650
That shows how to create quotes in a string.
The issue is how to paste a link into the target of a shortcut without quotes.

rundll32.exe desk.cpl,InstallScreenSaver C:\Program Files\test\test.scr

It tells you exactly what your problem is. You put both the path to the EXE and the parmaters in the same string but they should be in two seperate strings.

CreateShortCut "$SMPROGRAMS\test\Install.lnk" "$SYSDIR\rundll32.exe" "desk.cpl,InstallScreenSaver $INSTDIR\test.scr" "" "" 0


Thanks,

this worked

CreateShortCut "$SMPROGRAMS\test\Install.lnk" "$SYSDIR\rundll32.exe" "desk.cpl,InstallScreenSaver $SYSDIR\test.scr" "" ""
SW_SHOWNORMAL