- Thread Author
- #1
Hi,
I'm having a problem trying to automatically run a basic .bat file in task scheduler in windows 7 64-bit.
I have more complicated .bat files to schedule but I can't get a simple one to run.
This is the .bat file:
@ECHO OFF
ECHO hello there...
PING 1.1.1.1 -n 1 -w 5000 >NUL
It works fine manually - it opens a window and displays the message and then closes after 5 seconds - no problems.
If I schedule it to automatically run in task scheduler nothing happens - no window appears - but it says its running.
I did create a .bat file in the same directory containing:
shutdown /r
This launched fine using task scheduler - the computer restarted - great.
Any ideas how to get a simple .bat file to execute in task scheduler other than restarting the computer?
I'm losing my hair - it shouldn't be this difficult.
Thanks.
I'm having a problem trying to automatically run a basic .bat file in task scheduler in windows 7 64-bit.
I have more complicated .bat files to schedule but I can't get a simple one to run.
This is the .bat file:
@ECHO OFF
ECHO hello there...
PING 1.1.1.1 -n 1 -w 5000 >NUL
It works fine manually - it opens a window and displays the message and then closes after 5 seconds - no problems.
If I schedule it to automatically run in task scheduler nothing happens - no window appears - but it says its running.
I did create a .bat file in the same directory containing:
shutdown /r
This launched fine using task scheduler - the computer restarted - great.
Any ideas how to get a simple .bat file to execute in task scheduler other than restarting the computer?
I'm losing my hair - it shouldn't be this difficult.
Thanks.
Last edited by a moderator: