Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch File As a Task ?

Status
Not open for further replies.

smurfer

Programmer
Jun 8, 2001
57
US
I have a batch file that runs on a win2k server machine every minute. My question is since this batch process is set to run every minute, if a run of the batch process takes more than 1 minute to complete and is still running when the minute has passed and the scheduler is scheduled to start the next run of the batch process, will the batch run a second time while previous is still running, or will it know previous is still running and wait til it completes to run the next time? The .exe I am running is a vb executeable that is updating records in a database and sometimes could possibly run for a period of over one minute. I sort of need to keep this job running each minute, but occasionally on large chunks of data to be updated, I get an occasional record that fails, and I am trying to determine if problem is related to the batch process kicking of the next sequence scheduled to run.

Also, as a side note, can anyone advise what the result value of 0x0 means?
thank you..
 
Why the need to run every minute? Is the info that important? Make it two minutes if your concerned. Just an opinion, I'm full of 'em. Glen A. Johnson
Microsoft Certified Professional
glen@nellsgiftbox.com
[americanflag]

"You can't stop the wind. But you can build windmills".
Dutch Proverb.
 
Unfortuantely yes it is that important that it needs to be run each minute, even if I run it at 2 minutes, again it is possible during a heavy period that it will take that long to process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top