Anybody know how to do this?
I have a .bat script that I'd like to be able to use both from the command line as well as a post-build script in Visual Studio.
The script takes arguments, some of which can contain spaces.
The path to the .bat script can contain spaces, and is best expressed as a path relative to $(SolutionDir).
I've tried what seems like a hundred variations of command lines with different enclosing quote and escape character combinations including:
"$(SolutionDir)myScript.bat" "$(SolutionDir)\" "$(Platform)" "$(Configuration)"
call "$(SolutionDir)myScript.bat" "$(SolutionDir)" "$(Platform)" "$(Configuration)"
cmd /c ""$(SolutionDir)myScript.bat" "$(SolutionDir)" "$(Platform)" "$(Configuration)""
But they all generate errors, and I cannot find a combination that works, instead usually getting this error:
"[path-to-script] is not recognized as an internal
or external command, operable program or batch file"
What is the proper syntax to invoke this from a post-build step?
I'm having similar problems setting it up as an external tool as well, so any help with either is greatly appreciated!