zeinth
asked on
Batch Script
I like to write a window batch script that will run after every hour.
Suppose the name of my batch script is : st.bat, and script is in my machine's C:\ drive
Suppose the name of my batch script is : st.bat, and script is in my machine's C:\ drive
ASKER
I doubt that through window scheduler tool we can run script for every hour for Indefinite period.
.
.
Windows scheduler is intented Exactly for Your task. And it has all needed options to precise control over the job execution time. It's true, just try.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can doubt it, but I've run a script every 5 minutes for the last 2 years on one server - it updates MRTG to show a graph of my internet throughput. I use Scheduled Tasks. And it's still running. Is that "indefinite" enough?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got below solution from net, I think this script will work for me:
schtasks /create /sc minute /mo 20 /tn "Security Script" /tr \\central\data\scripts\tas k.bat
thanks all
schtasks /create /sc minute /mo 20 /tn "Security Script" /tr \\central\data\scripts\tas
thanks all
If you have a solution, you may close this question. You can acceppt your own comment as your solution if that's the case.
Thank you.
Kind regards.
Kind regards.
2) once the script is complete, you can use the windows scheduler to to run the script every hour.
Thanks
S00007359