Start command with special characters (CMD)

1

I'm creating a batch file that runs this command:

start jogo.exe user:USUARIO pwd:SENHA

The above command causes a character to automatically enter a certain game. The command works fine if entered through the Command Prompt itself. But I have to do the same thing constantly during the day ...

The problem is: I want to create a batch file that runs this command, but when the pwd: PASSWORD field has some special character like " , ', and ? "the prompt says that it does not exist with the following message:

  

The system can not find the file specified.   "'b * 5" is not recognized as an internal or external command,   program or batch executable file.

Sorry, the windows on my computer are in Spanish.

I've noticed that the problem only occurs when you have a special character like < ( minor ), > ( apostrophe ), "", " apostrophe     

asked by anonymous 25.06.2017 / 06:19

1 answer

4
  • Delimit the password with double quotation mark.
  • Escape double quotation mark with another double quotation mark
  • Example for the password a.qui<>_a_s'enha_";)_

    pwd:"a.qui<>_a_s'enha_"";)_"
    
        
    25.06.2017 / 06:37