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, ∼4373🔥, 0💬
Popular Posts:
Daylight saving time has been changed since March 2007 in US, Canada and Mexico. How do I update my ...
Pl help me.. Hi.. how to run a php script in windows xp ...? First, you need to download and install...
What is msntb.dll - DLL file - Windows Live Toolbar for Internet Explorer? DLL msntb.dll is installe...
How to download PHP engine for Windows systems? If you are interested in downloading a copy of PHP e...
Can I remove startup application "WZQKPICK.exe - WinZip Quick Pick" to speedup my computer and reduc...