Collections:
Other Resources:
Use Quotation to Protect Space in File Name
How to Quotation to Protect Space in File Names to be passed as batch file parameters?
✍: FYIcenter.com
If you want pass a file name or path name that has space characters as a single parameter
to a batch file, you need to put the name in a quotation format
(enclosed in a pair of double quotes).
For example, the path name "\Program Files (x86)\Java" has two space characters in it. If you provide it to the batch file with no quotation, the space characters will break the path name into 3 parameters:
C:\fyicenter>Batch-File-Parameters.bat \Program Files (x86)\Java (Batch-File-Parameters.bat) (\Program) (Files) ((x86)\Java) () () (\Program Files (x86)\Java)
But if you provide the path name in quotation format, space characters will be protected, and it will stay as a single parameter:
C:\fyicenter>Batch-File-Parameters.bat "\Program Files (x86)\Java"
(Batch-File-Parameters.bat)
("\Program Files (x86)\Java") () () () ()
("\Program Files (x86)\Java")
⇒ Remove Quotation Marks from Parameters
⇐ Quotations in Batch File Parameters
2021-11-12, ∼4656🔥, 0💬
Popular Posts:
How to configure your system for DSL Internet connection? Once your DSL modem is connected to your s...
Why HelpSvc.exe Is Causing Windows XP to Stop Responding - Using High CPU and Memory? Many users hav...
Where to find information about what processes are running on Windows 7 and how to manage them? I wa...
What is yinsthelper.dll - DLL File - Yahoo YInstHelper Module? yinsthelper.dll is the Yahoo YInstHel...
What is WindowsLiveLogin.dll - DLL file - Windows Live Login module? DLL WindowsLiveLogin.dll is ins...