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.