Prev Previous Post   Next Post Next
Old 31st October 2007, 12:06   #1
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
A problem about shoutcut

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.
Attached Images
File Type: jpg target.jpg (71.8 KB, 144 views)
jiake is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump