I have a Windows.bat script in which I try to run a command with a password in a parameter. The password I want to use is ~!@#$%^&*()_+|-=\][{}';:"/.>?,< .
From what I read here , I should avoid ^&|\<> c ^ . From what I am suggesting, I should avoid " using \" .
This gives me something like this:
runme.exe /password:"~!@#$%^^^&*()_+^|-=^\][{}';:\"/.^>?,^<"
But this will not work - my target application responds with a login error.
How can I avoid all these characters in order to be able to hardcode the password in my party (ignoring security issues at the moment)?
cmd escaping
NOtherDev Apr 24 '12 at 10:29 2012-04-24 10:29
source share