Collections:
Other Resources:
Quotations in Batch File Parameters
How to use quotations in double-quote pairs in batch file parameters?
✍: FYIcenter.com
Quotations in double-quote pairs in batch file parameters
take higher precedence than space characters.
So if a space character is inside a quotation, it will be
taken as part of a parameter, not as a delimiter to separate parameters.
For example, the following commands invokes the batch file with one parameter only:
C:\fyicenter>Batch-File-Parameters.bat "a b"
(Batch-File-Parameters.bat)
("a b") () () () ()
("a b")
C:\fyicenter>Batch-File-Parameters.bat "a b c"
(Batch-File-Parameters.bat)
("a b c") () () () ()
("a b c")
C:\fyicenter>Batch-File-Parameters.bat " a b c "
(Batch-File-Parameters.bat)
(" a b c ") () () () ()
(" a b c ")
C:\fyicenter>Batch-File-Parameters.bat " a b c "
(Batch-File-Parameters.bat)
(" a b c ") () () () ()
(" a b c ")
⇒ Use Quotation to Protect Space in File Name
⇐ Space - Delimiter for Batch File Parameters
2021-11-12, ∼4293🔥, 0💬
Popular Posts:
What is causing the HTTP 403 (Forbidden) error when running PHP scripts with PHP CGI configuration? ...
How do I install simplified and traditional Chinese language packs on my Windows XP system? Installi...
Can I disable Windows service "hpqwmiex.exe - HP ProtectTools security manager" to speedup my comput...
What is EvtEng.exe process - Intel Wireless EvtEng Module? Process EvtEng.exe is related to your wir...
Error 126: Application Management Service Failed To Start. The Specified Module Could Not Be Found. ...