Hi Larry,
Replying to a message of Larry Snider to All:
LS> Could someone please provide me with a working example of
LS> SysCopyObject using fully specified file names? For some reason, I
LS> cannot get it to work.
LS> I've tried it this way:
LS> call SysCopyObject('e:\popuplog.os2', 'e:\SCO_popuplog.os2')
What you are trying to do here is copy the file and re-name it as you go. The
SysCopyObject() function won't do this, as it uses the SOM method supplied by
the WPS for its drag-and-drop copy operations.
Instead, you will need an extension DLL that provides an interface to the
DosCopy() API. I use REXXLIB, from Quercus Systems Inc., to do this. You will
likely find RxExtras and YDBAUTIL also offer some similar facility.
Regards
Dave
--- FleetStreet 1.24.1
* Origin: The man who broke the bank at Monte Carlo (2:257/609.5)
|