I have a Windows .bat script in which I try to run a command with password in parameter. The password I want to be able to use is ~!@#$%^&*()_+|-=\\][{}\';:\"/.>
Give this a try, but if runme.exe
's argument parser requires quotes as string encapsulators for passwords, the it's not going to work. If you need to have a quote in your password, then runme.exe needs to provide a way to escape it!
runme.exe /password:~!@#$%%^^^&*()_+^|-=\][{}';:"/.>?,<
Double the quote in the password and make sure the complete password is enclosed in quotes as well:
runme.exe /password:"~!@#$%%^^^&*()_+^|-=\][{}';:""/.>?,<"