FuchsC
22nd July 2002 15:39 UTC
Shortcut problem
i create a shortcut using following command:
CreateShortCut
"$DESKTOP\TEMPPO 2.1.lnk"
'"$INSTDIR\jre\bin\javaw.exe"'
'-classpath temppo.jar;lib.jar -Dsun.java2d.noddraw temppo.Temppo'
"$INSTDIR\temppo.ico"
0
The Problem:
on some NT installations the shortcut is created correct and on some it is created with C:\ in front of the "real" shortcut.
any ideas?
regards,
Clemens
kichik
22nd July 2002 15:57 UTC
Please read the docs...
The parameters should come as a seperate paremeter to CreateShortCut.
FuchsC
22nd July 2002 16:07 UTC
i read the docs and i use separate parameter for the shortcut parameter!
kichik
22nd July 2002 16:39 UTC
So why do you have triple quotes before the java path? It seemed like you quoted both of them togther.
Try to do it with just one quote/double quote.
FuchsC
22nd July 2002 16:49 UTC
The windows shortcut is created from the second and third parameter of CreateShortCut. If $INSTDIR contains a space (e.g. c:\program files) and it's not quoted, a queer shortcut will be created (c:\"c:\...."). So I put quotes around fragments, i expect to contain spaces. This works on some machines and on others not !?
Joost Verburg
22nd July 2002 17:30 UTC
You don't need to put quotes around $INSTDIR (even if it contains spaces).