Documentation Question

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.

Documentation Question

Postby tas3086 » Mon Feb 17, 2014 4:49 pm

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,
tas3086
 
Posts: 212
Joined: Mon Mar 19, 2012 11:15 am

Re: Documentation Question

Postby TeraByte Support » Mon Feb 17, 2014 8:50 pm

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,

TeraByte Support
 
Posts: 2330
Joined: Thu May 05, 2011 3:37 pm


Return to Scripting