Escape Double Quote in Batch Parameter

Q

Is there any way to escape the double quote in a batch parameter? I really want to enter a double quote as part of the parameter.

✍: FYIcenter.com

A

The answer is no. There is no way you can escape the double quote in a batch file parameter.

Double quotes are reserved by Windows to form quotations to protect space characters, redirect operators, and command joining operators.

See previous tutorials on how double quotes are used a quotations in Windows command line.

 

cmd.exe - Command Prompt Program

Quotation without the Closing Mark

Introduction of Windows Batch File

⇑⇑ Windows Batch File Tutorials

2021-07-02, 7255🔥, 1💬