Categories:
Administration (10)
Adware Spyware (7)
Apache (10)
Bluetooth (125)
DOS Commands (1)
Edge (28)
General (2)
Internet Explorer (217)
Media Center (12)
Media Player (11)
Mozilla Firefox (18)
PHP (15)
Programming (8)
Security (4)
Silverlight (15)
Tips (17)
Tools (218)
Tutorials (5)
Windows 10 (166)
Windows 7 (636)
Windows 8 (1091)
Windows Phone (33)
Windows Server 2008 (165)
Windows Server 2012 (84)
Windows Server 2016 (23)
Windows Vista (52)
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, 1206👍, 0💬
Popular Posts:
Can I remove startup application "BascsTray.exe - Broadcom Advanced Control Suite" to speedup my com...
What is service "AEADIFilters" and program "AEADISRV.EXE" on Windows Vista? "AEADIFilters" is a syst...
Can I disable Windows service "ASP.NET State Service" to speedup my computer? Windows service "ASP.N...
How do I install simplified and traditional Chinese language packs on my Windows XP system? Installi...
Can I remove startup application "ifrmewrk.exe - Intel Wireless Framework" to speedup my computer an...