Is there a way to timeout (end) a script that has paused for a specified length of time.
for example a msg has been sent, but no one has responed (like clicking a ok button) for a specified length of time.
the reason i am asking this is i have scripts the run off a shared drive. (executables)
what happened was one of my assoiates was runnnig one of the scripts on his computer, he went home and let it run, the script sent a msg and of course no one was there to click the ok button.
i had to make changes to script and when i went to copy the exe from my folder to replace the one
in in the shared drive it said it was in use by someone else. I had to wait till the next day when the user came in and released the exe.
if there was a time out feature on that script then i would have to wait.
better yet would be having a script like the following that woulld work on a network instead of
just my computer
[b]
for example a msg has been sent, but no one has responed (like clicking a ok button) for a specified length of time.
the reason i am asking this is i have scripts the run off a shared drive. (executables)
what happened was one of my assoiates was runnnig one of the scripts on his computer, he went home and let it run, the script sent a msg and of course no one was there to click the ok button.
i had to make changes to script and when i went to copy the exe from my folder to replace the one
in in the shared drive it said it was in use by someone else. I had to wait till the next day when the user came in and released the exe.
if there was a time out feature on that script then i would have to wait.
better yet would be having a script like the following that woulld work on a network instead of
just my computer
[b]
[/b] $prog = inputbox("","enter full prog name") ;$prog = $prog & ".exe" while 1 $PID = ProcessExists($prog) msgbox(0,"",$pid) ; Will return the PID or 0 if the process isn't found. If $PID Then ProcessClose($PID) Else exitloop endif WEnd