hi ,
how can i create a schedule job in VB , which can check a particular file whether it is running or not and if not then execute that file. please help me in this regard.
thanks in advance
Deepak
Printable View
hi ,
how can i create a schedule job in VB , which can check a particular file whether it is running or not and if not then execute that file. please help me in this regard.
thanks in advance
Deepak
Did you write the program you want running?
The easiest way is to use Windows Task Scheduler. It's in Win2k3 Server, tho...
Task Scheduler won't check to see if the program is already running, though. If he has access to the source for the program he can just have it exit if a previous instance is running. Then TS, or a similar program writtenin VB, would be a usable solution.
yea, I just noticed that.
There is the App.PrevInstance function, but I am not sure how one would capture an exe of another name.