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, 1911🔥, 0💬
Popular Posts:
What is the startup program "Alps Pointing Device Driver - Apoint.exe" on my Windows 8 computer? Can...
Can I disable Windows service "Network DDE" to speedup my computer? Microsoft application service "N...
Where to find tutorials on using Windows PowerShell? I want to learn everything about Windows PowerS...
What is the installed program "Windows SDK AddOn" on my Windows 7 computer? "Windows SDK AddOn" is a...
Why HelpSvc.exe Is Causing Windows XP to Stop Responding - Using High CPU and Memory? Many users hav...