V
Vanguard
I want to add a scheduled event in Task Scheduler to run a .bat file every
10 or 20 minutes. The problem is that this results in opening a console
window while the batch file is running. I don't want to have my work
interrupted by a window popping up all the time for a job that should be
running in the background.
At first, the command for the event was "C:\Batch\<batfile>.bat" but that
opens a DOS shell console window when it gets executed. I then tried "cmd
/c start /b C:\Batch\<batfile>.bat" but that opens a console window (and
leaves it open). I ran "cmd /?" but none of the command-line switches let
me tell it not to open a console window.
10 or 20 minutes. The problem is that this results in opening a console
window while the batch file is running. I don't want to have my work
interrupted by a window popping up all the time for a job that should be
running in the background.
At first, the command for the event was "C:\Batch\<batfile>.bat" but that
opens a DOS shell console window when it gets executed. I then tried "cmd
/c start /b C:\Batch\<batfile>.bat" but that opens a console window (and
leaves it open). I ran "cmd /?" but none of the command-line switches let
me tell it not to open a console window.