ReadFile results in IO error 32

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
usernamechan
Newbie
Posts: 10
Joined: Wed Apr 18, 2007 5:51 pm

ReadFile results in IO error 32

Post by usernamechan » Tue Apr 24, 2007 11:05 pm

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
Last edited by usernamechan on Sun Mar 13, 2011 7:59 am, edited 1 time in total.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Apr 24, 2007 11:12 pm

You may not have permissions in that \Smart\ folder.
Does it work if you run as Admin?

It might be shared, but sharing does not always provide permissions for individual users.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

usernamechan
Newbie
Posts: 10
Joined: Wed Apr 18, 2007 5:51 pm

Post by usernamechan » Wed Apr 25, 2007 2:53 am

I was running as Admin. I did share the folder. What else could it be?
________
jailbroken
Last edited by usernamechan on Tue Feb 01, 2011 12:27 pm, edited 1 time in total.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Apr 25, 2007 4:55 am

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......

???
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Apr 25, 2007 7:38 am

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.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts