T
Task4w ago
peini7

How do use double quotes in cmd on windows?

I want to run the following command:
cmds:
- cmd /c "SET VSCMD_START_DIR=%CD% && call ""%VSCOMNTOOLS%VsMSBuildCmd.bat"""
cmds:
- cmd /c "SET VSCMD_START_DIR=%CD% && call ""%VSCOMNTOOLS%VsMSBuildCmd.bat"""
The thing is that %VSCOMNTOOLS% contains spaces, so i need to wrap it in quotes but no matter what i try, the quotes are always removed and i get this error, when executing this task: "Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden." Does anyone know how to fix this?
1 Reply
tboerger
tboerger7d ago
Have you tried to escape the quotes with a backslash or backticks?

Did you find this page helpful?