Search code examples
windowscmdcommandprompt

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\"
F:
Template.bat

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

How can I do this in one single line?


Solution

  • Can refer to here: https://ss64.com/nt/start.html

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