How to use a path with spaces in the batch file? [duplicate]
The issue is that the start
command (built into CMD) has a special way to handle the first parameter with quotation marks, which is to specify an optional title for the created window; without the first set of quotation marks (like the solution below), the start
command is interpreting the command shown in the question as follows:
- Create a window with a title of:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC
- No information is provided on what to actually start in that window
The solution is to run:
start "" "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"
:: # Or more elaborately:
start "Optional Window Title" "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"