Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 2nd February 2006, 04:54   #1
thelliez
Junior Member
 
Join Date: Feb 2004
Posts: 23
Passing Strings with special characters to DOS

We have the following nested calls:

NSIS calling a .cmd calling a .vbs.

The problem is that we need to pass a password from NSIS to vbs. The password might contain characters such as % that nor not friendly to DOS. For example, if the password happens to be "%PATH%", DOS will expand it to the full definition of the PATH environment. Not good.

We can escape that one level: "^%PATH^%". But that's not enough to make it to the .vbs. We would need double escaping...

Has anyone any suggestions to pass Strings without the DOS interpretation of the characters? A file could be used but that's not ideal since we are dealing here with a password that we do not want to see in a file.

Thanks,
Thierry
thelliez is offline   Reply With Quote
Old 2nd February 2006, 06:17   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
Archive, plug-ins http://nsis.sourceforge.net/Category:Plugins
ExecDos OR ExecCmd
Takhir is offline   Reply With Quote
Old 2nd February 2006, 18:56   #3
thelliez
Junior Member
 
Join Date: Feb 2004
Posts: 23
It seems to be quite an interesting option.
Thanks,
Thierry
thelliez is offline   Reply With Quote
Reply
Go Back   Winamp 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