Prinz
7th May 2003 23:50 UTC
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!
Prinz
8th May 2003 15:35 UTC
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
kichik
8th May 2003 16:24 UTC
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
Prinz
8th May 2003 17:13 UTC
Thanks,
this worked
CreateShortCut "$SMPROGRAMS\test\Install.lnk" "$SYSDIR\rundll32.exe" "desk.cpl,InstallScreenSaver $SYSDIR\test.scr" "" ""
SW_SHOWNORMAL