I have a script that's moving files. Occasionally the file being moved is in use and the move doesn't happen. How can I monitor for an "in use" error so I can deal with these exceptions?
Thanks
moving a file - file in use
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: moving a file - file in use
You should be able to trap the error - ignore errors and then check lasterror:
https://www.mjtnet.com/manual/index.htm ... ndling.htm
https://www.mjtnet.com/manual/index.htm ... ndling.htm
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?