Run batch file when argument contains quotes and spaces (from .NET framework)
- by turtle
I have a bat file which sets some environment variables, and then executes a command on the command line. I want to replace the hard coded command with one passed in via a parameter.
So:
:: Set up the required environment
SET some_var=a
SET another_var=b
CALL some.bat
:: Now call the command passed into this batch file
%1
The problem is that…