Re: copy a pdf file using a DOS function


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

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.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]