|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
|
Archive, plug-ins http://nsis.sourceforge.net/Category:Plugins
ExecDos OR ExecCmd |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2004
Posts: 23
|
It seems to be quite an interesting option.
Thanks, Thierry |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|