Escaping special characters in cmd

后端 未结 2 1446
花落未央
花落未央 2020-12-01 18:27

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 ~!@#$%^&*()_+|-=\\][{}\';:\"/.>

2条回答
  •  温柔的废话
    2020-12-01 18:51

    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:~!@#$%%^^^&*()_+^|-=\][{}';:"/.>?,<
    

提交回复
热议问题