Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Win 2000 Server Scheduler

Posted on 2003-10-27
6
172 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server Hard Drive Expansion 2 158
Remote Desktop Software 6 455
Windows 2000 Server to 2008 upgrade 8 519
Windows task manager not executing scheduled task correctly? 6 152
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…
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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