ALW Posted June 8, 2011 Share Posted June 8, 2011 I wrote a script - that needs to start running at 6:00 AM and end at 7:00 PM. I have controlled for the running period (6 AM - 7 PM) with a while loop and checking the time and deciding what to do based on the time. However, how can I start the script when the system boots - almost like - if not as a service. Any ideas or help would be appreciated. Link to comment Share on other sites More sharing options...
Casey Posted June 8, 2011 Share Posted June 8, 2011 checking the time and deciding what to do based on the time.One option, use the task scheduler with a compiled version of your script. Set the allowed run time for the task to be an hour. Use case statements for your different times. If your only doing a couple of events in that hour then schedule them as individual tasks. Otherwise, do a loop and allow the scheduler to kill it off at 7. This way you don't have to worry about the server starting, editing the registry for startup, and other admins would go there first to look anyway.Just an idea.Casey Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now