Posted by Grant E Foraker on September 16, 2020 at 05:13:51:
In Reply to: Copyfile Error 22/29 posted by Jeff Cinelli on September 15, 2020 at 16:53:33:
Might be this. CopyFile documentation has a link to Microsoft Error codes.
ERROR_WRITE_FAULT
29 (0x1D)
The system cannot write to the specified device.
=====================================================================
My CopyFile logic ...
LET FROMFILE$ = STRIP(PATH(ZDIR1$)) + WORKFIL2$
LET TOFILE$ = STRIP(DATAPATH$) + 'INVORG3Y.CSV'
LET FLAGS = 0 + 2048 + 4096 ! LOCAL, OVERWRITE, CREATE DIRECTORY
Print (CopyFile = FROMFILE$, TOFILE$, FLAGS)
GOSUB GetResult
IF FuncError NE 1
LET MBMSG$ = 'Copy Error:' + STR(FuncError) + '/' + STR(FileError)
LET MBMSG$ = MBMSG$ + '@0D0A@From: ' + STRIP(FROMFILE$)
LET MBMSG$ = MBMSG$ + '@0D0A@To: ' + STRIP(TOFILE$)
MSGBOX(MBMSG$)
RETURN
ENDIF
Helps to see the full path info.
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.