Posted by Grant Foraker on January 10, 2011 at 14:57:12:
In Reply to: Re: copy a pdf file using a DOS function posted by Barbara Brazil on January 10, 2011 at 13:57:07:
There's an inconsistency.
DOSMS for a MOVE uses file names (path).
DOSMS(AX-value, BX-value, Source file name, Target file name) EXCP=statement-label
DOSMS for a COPY uses handles
DOSMS(AX-value, BX-value, CX-value, DX-value) EXCP=statement-label
COPY is a multistage process.
1) get handle of FromFile and save it as CX$
2) create empty ToFile and get it's handle. Save as DX$.
3) do the COPY
4) close both handles
Way back, last decade, requested a simple DOSMS COPY using file names (path).
Unless you're in background, use FileCopy.
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.