Let>zip=96502
ReadFile>C:\Smart\zip_code.txt,file
MessageModal>file
Let>match={if(pos(%zip%,%file%)>0,"yes","no")}
Message>%match%
I get an IO error 32 from running this script with the file located under a folder/directory. If I move the file to the root C:, the script runs fine.
Let>zip=96502
ReadFile>C:\zip_code.txt,file
MessageModal>file
Let>match={if(pos(%zip%,%file%)>0,"yes","no")}
Message>%match%
________
Free vaporizer
ReadFile results in IO error 32
Moderators: Dorian (MJT support), JRL
-
- Newbie
- Posts: 10
- Joined: Wed Apr 18, 2007 5:51 pm
ReadFile results in IO error 32
Last edited by usernamechan on Sun Mar 13, 2011 7:59 am, edited 1 time in total.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
-
- Newbie
- Posts: 10
- Joined: Wed Apr 18, 2007 5:51 pm
Last edited by usernamechan on Tue Feb 01, 2011 12:27 pm, edited 1 time in total.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Random thoughts:
1. What operating system, what version of Macro Scheduler?
Possible Vista annoyance?
2. Is file in \Smart\ folder hidden or system file?
3. When does error come up? Single step through with Watch List values, and ID when error occurs.
4. Folder may have permissions, but how about individual file?
Hmm, running as Admin, so that can probably be ruled out......
???
1. What operating system, what version of Macro Scheduler?
Possible Vista annoyance?
2. Is file in \Smart\ folder hidden or system file?
3. When does error come up? Single step through with Watch List values, and ID when error occurs.
4. Folder may have permissions, but how about individual file?
Hmm, running as Admin, so that can probably be ruled out......
???
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Look at:
http://www.mjtnet.com/forum/viewtopic.php?t=2835
Error code 32 is a sharing violation. Therefore some other process already has exclusive access to the file you are trying to open. You aren't allowed to open it. The only way would be to ensure the other process has released the lock, or has closed first.
http://www.mjtnet.com/forum/viewtopic.php?t=2835
Error code 32 is a sharing violation. Therefore some other process already has exclusive access to the file you are trying to open. You aren't allowed to open it. The only way would be to ensure the other process has released the lock, or has closed first.
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?