Solved

Win 2000 Server Scheduler

Posted on 2003-10-27
6
179 Views
Last Modified: 2010-04-14
Win 2000 Server Scheduler

What happens if a reoccurring scheduled task begins and the previous task hadn’t completed?

I have a program that I run every 5 minutes (it sends updates on the database via XML to another server/HTTP). My question is what happens if I have more data then can be sent within 5 minutes. The program was written in VB6.

Does the schedule know the other program is running and not start a new copy of the program?

Or does it start running another version of the program (so two of the same programs are running at the same time).

Thanks - Tom
0
Comment
Question by:tomhoran
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
boxcar7 earned 50 total points
ID: 9630916
It will just create a new instance of the program.

I have an access database that does something similar.  What I have done is write a vbs script that looks for the Access lock file file.  If it doesn't find it, it runs the Access database macro.

I would think you could do something similar.  Have your VB6 program put in a registry tag or have it create a temporary file to indicate it's status.  If you don't want to change the source, have the schedule a vbs that takes care of the task management and launching your program as necessary.

I hope this helps...

0
 

Author Comment

by:tomhoran
ID: 9631121
boxcar,

Thanks for the idea. I figured it out. I'm using App.PrevInstance. This si the code i used, so the program just exits if its currently executing

If App.PrevInstance Then
     Exit Sub
End If
0
 

Author Comment

by:tomhoran
ID: 10044119
i'd like to split the point 50 for them and 50 for me since i figured out the answer myself.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server 2008 Server 2003 Server 2000 12 644
Norton Ghost for Windows NT 5 1,517
Windows timing on domain Pcs 4 459
Data off on old Win 2000 server. 18 599
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question