Computing.Net > Forums > Programming > Run bat script on certain time.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Run bat script on certain time.

Reply to Message Icon

Name: mikescm78
Date: October 9, 2006 at 20:29:38 Pacific
OS: Win XP
CPU/Ram: P4
Product: HP
Comment:

Hi All,

Hope you guys can help me out here. I have written a script but I want the script to run on certain time.

The script will work like this: Whenever I login to the PC the script will call another script from 5.00pm to 9.00am while from 9.00am onwards to 4.59pm the script will no call the other script.



Sponsored Link
Ads by Google

Response Number 1
Name: mikescm78
Date: October 9, 2006 at 20:43:40 Pacific
Reply:

In other words... whenever you login to the PC, the script will check the local PC time, if the time is between 5.00pm to 8.59am, then the script will call another script else it will not do anything.


0

Response Number 2
Name: Michael J (by mjdamato)
Date: October 9, 2006 at 21:36:07 Pacific
Reply:

Use Windows scheduler to always run the script when you start windows. Then mdify the script to exit w/o taking it's normal actions if the time is between 9am and 5pm.

Michael J


0

Response Number 3
Name: mikescm78
Date: October 9, 2006 at 21:48:05 Pacific
Reply:

Yes but how do I write the script?


0

Response Number 4
Name: Michael J (by mjdamato)
Date: October 9, 2006 at 22:04:47 Pacific
Reply:

Well, you said you had written the script so I assumed you knew how to write one. Perhaps telling us what kind of script would be helpful, i.e batch, vbscript, etc.

Michael J


0

Response Number 5
Name: Michael J (by mjdamato)
Date: October 9, 2006 at 22:05:29 Pacific
Reply:

Nevermind, it's late and I'm tired. I see you meant batch script.

Michael J


0

Related Posts

See More



Response Number 6
Name: Michael J (by mjdamato)
Date: October 9, 2006 at 22:08:35 Pacific
Reply:

Perhaps this will help: http://www.ss64.com/ntsyntax/GetTim...

Michael J


0

Response Number 7
Name: mikescm78
Date: October 9, 2006 at 22:38:07 Pacific
Reply:

I want a bat script that will check the local PC time, if the time is between 5.00pm to 8.59am, then the bat script will call another script else it will not do anything.

Anyone can help me?


0

Sponsored Link
Ads by Google
Reply to Message Icon

voice remover. How to run script at cert...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Run bat script on certain time.

How to run script at certain time? www.computing.net/answers/programming/how-to-run-script-at-certain-time/14773.html

converting Date in Bat-Script www.computing.net/answers/programming/converting-date-in-batscript/15956.html

Run script on each file in directory www.computing.net/answers/programming/run-script-on-each-file-in-directory/19818.html