Page 1 of 1

Documentation Question

Posted: Mon Feb 17, 2014 11:49 pm
by tas3086
Is there any complete documentation on return codes from open, read, and write routines?
I'm getting occasional rc 4's on writes, and rc 6's on opens. I've looked through your sample script files and don't see anything there either.

I'm also having some problems with the set option locking under windows. On some win 7 systems setting it to 0 works for ntfs file, and on another only setting it to 1 works. I've also experienced that (on the same system) writing to "C" requires 0 and writing to "D" requires 1 set before each open.
(Under DOS or TBOS, 1 seems to work for either. Can you help explain this? Given some rc information, I think that I can code around most any condition.

Thanks in advance,

Re: Documentation Question

Posted: Tue Feb 18, 2014 3:50 am
by TeraByte Support
The error code is what it is .. 4 is a write error, 6 is an open error.

Locking is *needed* on Vista or later, but it should be used on any volume
Windows has open/access to. 1 locks, 0 doesn't, 2 locks and attempts to
dismount (forces off open handles if it can). That is only used when
directly access file system, you should use the drive letters when
available.

"tas3086" wrote in message news:7548@public.scripting...

Is there any complete documentation on return codes from open, read, and
write routines?
I'm getting occasional rc 4's on writes, and rc 6's on opens. I've looked
through your sample script files and don't see anything there either.

I'm also having some problems with the set option locking under windows. On
some win 7 systems setting it to 0 works for ntfs file, and on another only
setting it to 1 works. I've also experienced that (on the same system)
writing to "C" requires 0 and writing to "D" requires 1 set before each
open.
(Under DOS or TBOS, 1 seems to work for either. Can you help explain this?
Given some rc information, I think that I can code around most any
condition.

Thanks in advance,