Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Win 2000 Server Scheduler

Posted on 2003-10-27
6
Medium Priority
?
188 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
[X]
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
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
boxcar7 earned 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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