Command to run a .bat file


I’m trying to make my Visual Studio build script execute a .bat file that does something important.

Here is what I’m want to do right now:

cd "F:\- Big Packets -\kitterengine\Common\" Template.bat

But it doesn’t work.

I have to do this to make it work:

cd "F:\- Big Packets -\kitterengine\Common\"

But this is pretty difficult to add to the Visual Studio script.

How can I do this in one single line?


Can refer to here:

start "" /D F:\- Big Packets -\kitterengine\Common\ /W Template.bat

Answered By – jwgan

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published