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, ∼4283🔥, 0💬
Popular Posts:
Can I remove startup application "OSA9.exe - Microsoft Office Launch Helper" to speedup my computer ...
product key for adding features to windows 8 The product key you require is MBFBV-W3DP2-2MVKN-PJCQD- ...
What is Windows Genuine Advantage Validation Tool - Download Program Files (DPF)? Windows Genuine Ad...
What is the scheduled task "\G2MUpdateTask-S-1-5-21 -..."on my Windows 7 computer? "\G2MUpdateTask-S...
What is NicConfigSvc.exe process - Internal Network Card Power Management Service? Process nicconfig...