start batch file from within a Delphi application


Posted by Stefan Loeners on April 23, 2000 at 14:51:24:

My question is : HOW DO YOU LAUNCH A BATCH FILE FROM WITHIN A DELPHI APPLICATION?
Our company has a history of folders getting deleted and moved on a regular basis. We have NT workstations in a Netware 4.11 environment (IPX protocol) . We like to think that these incidents are due to human error, someone being careless in Windows Explorer. I was looking for a way to prevent this (and to rule out the possibility of a hacker or a virus). I found a tool in the demos of Delphi 5, called copyhook.dll. This DLL controls all folder operations (move, delete, rename, copy). I modified the code a bit to keep track of moves and deletions. Also, a log file is updated every time someone even tries such an operation. I also created a batch file that checks if a log file exists, a broadcast message is sent to me. All this works fine, but this batch file is launched during log in (by means of a NAL object that is set to force run). This means that I only get notified of an event next time the user logs in. This is not acceptable. That is why I am looking for a way to


Related Articles and Replies: