Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   A problem about shoutcut (http://forums.winamp.com/showthread.php?t=280421)

jiake 31st October 2007 12:06

A problem about shoutcut
 
1 Attachment(s)
How to create a short cut with an argument?

suppose that the target of the shorcut is "%Windir%\system32\rasphone.exe -d ADSL",I create it by “New→Shortcut”.I input "%Windir%\system32\rasphone.exe -d ADSL"(without the quotation marks),now the target of the shortcut is "%Windir%\system32\rasphone.exe -d ADSL"(without the quotation marks),use the follow script:

CreateShortCut “ADSL.lnk” "%Windir%\system32\rasphone.exe -d ADSL"

The target is "%Windir%\system32\rasphone.exe -d ADSL"(with the quotation marks),run it,Windows said the file is not found!after delete the quotation marks,the shorcut turns right.If the argument "-d" is quoted,it can not run.

To create a shortcut that the words in target box does not contain the quotation marks,becuse there is a argument "-d" in the target,NSIS default not.

Anders 31st October 2007 12:39

if you read the documentation for CreateShortCut you will see that you should use
CreateShortCut "ADSL.lnk" "%Windir%\system32\rasphone.exe" "-d ADSL"


All times are GMT. The time now is 17:52.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.