Documentation Question

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
Post Reply
tas3086
Posts: 317
Joined: Mon Mar 19, 2012 6:15 pm

Documentation Question

Post 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,
TeraByte Support
Posts: 3598
Joined: Thu May 05, 2011 10:37 pm

Re: Documentation Question

Post 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,

Post Reply