TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: Larry Snider
from: David Noon
date: 1999-11-27 09:50:07
subject: SysCopyObject

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)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.