- 1 year ago
How to run .Bat file in background
Comment
1 / 1
To run a .bat file in the background on Windows, you can use a command-line tool called start
. The start
command allows you to start a program or script in a separate window or in the background without blocking the command prompt. Here's how you can use it:
batchstart /B cmd /C "path\to\your\script.bat"
In this command, /B
tells start
to start the command without opening a new window, and /C
tells cmd
(the Windows command interpreter) to run the specified .bat file and then exit.
Replace "path\to\your\script.bat"
with the actual path to your .bat file.
By using start
with the /B
and /C
options, the .bat file will run in the background without opening a new window or blocking the command prompt.