Quote end in quotation marks

I was looking for a solution for this, but could not find it. Not sure if this is possible.

Can I go to the command line that passes a in the bat file that has the input file as arguments?

So, from the command line it will look like this:

C:\run.exe "C:\space folder\run.bat "C:\space folder\input.txt""

The problem is folders with spaces, so the quotation marks should be there.

+4
source share
2 answers

Try the following:

C:\run.exe "C:\space folder\run.bat \"C:\space folder\input.txt\""

And here is a link where you can see all the escape characters http://www.robvanderwoude.com/escapechars.php

+4
source

, , .

Windows . .

:

C:\run.exe ""C:\space folder\run.bat" "C:\space folder\input.txt""

+1

All Articles