Script Copy error

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

Script Copy error

Postby Jameshah » Sun Nov 08, 2020 9:51 am

This part of my script:
if ext("OPEN FS 5: "#tdxx#" 0x"#tpxx)=0 then
ext("COPY \ifd.log 5:ifd1.log /y ")
ext("CLOSE FS 5:")
end if
generates the following error :
"Copying \IFD.LOG...Error: Unable to create file 5:ifd1.log"

5: is a NTFS drive. Do I have a permission problem? If so, how do I set/correct the write permission?

(this error running under (Windows32) tbosdtw.exe. Seems to work fine under (DOS) tbosdt.exe to the same NTFS drive)
Posts: 2
Joined: Sun Nov 08, 2020 9:50 am

Re: Script Copy error

Postby Eric » Sun Nov 08, 2020 12:15 pm

Did you change before the "locking" option? It should not be changed, or set to 1 or 2.
Also, is the ifd.log file in the root of the current drive? You wrote \ifd.log in the copy command, and maybe the file \ifd.log does not exist?
Posts: 198
Joined: Mon Sep 05, 2011 11:53 am
Location: France

Return to Scripting