How would you set up a program so that it will terminate if it is still running at a specific time (of day)...
Say like at 7:00 PM
I have a program that I keep on our network...
People usually run the program straight from the network drive so when I update the program, they always run the newest version...
The problem is that if someone leaves for the day and the program is still running, I can not replace it...
So... I want to set it up to close at a specific time, unconditionally, so I can replace the file...
I am assuming I can use either the Time function or the Timer Function to find out what time it is and compare to the preset termination time...
How could I set up the code to constantly check the time without wasting resources...
Could you set up an event?
Or would I be better off setting up a Timer control and having it timeout after the program is inactive for a period of time (like 30 or 60 minutes)
Have Fun, Be Young... Code BASIC
-Josh
Say like at 7:00 PM
I have a program that I keep on our network...
People usually run the program straight from the network drive so when I update the program, they always run the newest version...
The problem is that if someone leaves for the day and the program is still running, I can not replace it...
So... I want to set it up to close at a specific time, unconditionally, so I can replace the file...
I am assuming I can use either the Time function or the Timer Function to find out what time it is and compare to the preset termination time...
How could I set up the code to constantly check the time without wasting resources...
Could you set up an event?
Or would I be better off setting up a Timer control and having it timeout after the program is inactive for a period of time (like 30 or 60 minutes)
Have Fun, Be Young... Code BASIC
-Josh