in reply to Re^2: error message not working
in thread error message not working

It does open an actual file. I know what you are trying to do. I'm only suggesting it as a work-around because opening DATA isn't doing the job on win32. As I showed before, using a real sentinel file does prevent additional instances of the script from running. merlyn suggested opening DATA because the code is simpler that way.