Add another message box before iSTaskRunning Please note that the messages will appear on the agent. If you do not get the first message you have a problem with scheduler/agent connection. : no the scheduler crashes .. version 3.4.13 : as u can see in the code, it should show the user : a message if Access is open or if it is copying : the MIS (MIS = Access mdb) : dim code_, boolean : iSTaskRunning("MSACCESS.EXE", code_) : if (code_,message1, message2) : message1: messageBox "Access is still open, cannot copy MIS" : LogAddMessageEx("ERROR",0,"copy MIS","!!!! copy MIS : failed !") : exit : message2: messageBox "copying MIS in progress .." : runandwait("g:\file24x7\COPYMIS24.BAT","",0,code_) : messageBox "copy complete" : exit
|