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.
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.
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
Response Number 6
Name: Michael J (by mjdamato) Date: October 9, 2006 at 22:08:35 Pacific
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.
Summary: 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 please? ...
Summary: Hello Firt of all, I'm not very used in programming, so sorry if I'm not as specific as I should be. I wrote a Bat-Script on a Windows 2003 Server that reads the lines of a csv-file, puts it ordered i...
Summary: I currently have a batch file that chacks the contents of a file and replaces part of a text string (thanks to Machanix2Go)this works fine. However, now I need to run this script on all files in a dir...