Archive: Problem with CreateShortcut


Problem with CreateShortcut
Hello!

I have problem with a created shortcut. It creates wrong.

Code:
CreateShortCut "$SENDTO\test_maskin.lnk" "\\server\jre\bin\javaw.exe -jar" "\\server\utv_java\Java_skicka_till.jar \\server\utv_dok2\maskin"

It results in a shortcut on the right place but with "" around the string i shortcut properties.

Having those chars around makes my shortcut unusable.
When I remove "" chars it works fine.

Can I create a shortcut without "" around the string?

Best regards!


In the properties of the shortcut
"\\server\jre\bin\javaw.exe -jar \\server\utv_java\Java_skicka_till.jar \\server\utv_dok2\maskin"

If I remove " chars then the shortcut work. Any ideas?

\\server\jre\bin\javaw.exe -jar \\server\utv_java\Java_skicka_till.jar \\server\utv_dok2\maskin


Please help


Try this:

CreateShortCut "$SENDTO\test_maskin.lnk" "\\server\jre\bin\javaw.exe" "-jar \\server\utv_java\Java_skicka_till.jar \\server\utv_dok2\maskin"


-Stu

! W O R K S !

Thank you man!

Best regards!