Path: utzoo!mnetor!uunet!munnari!gwydir!ccadfa!anucsd!fac3!rsbs0!dallwitz From: dallwitz@rsbs0.anu.oz Newsgroups: comp.os.vms Subject: Re: LIB$COPY or something? Message-ID: <13@rsbs0.anu.oz> Date: 7 May 88 17:36:24 GMT References: <8805011544.AA28437@ucbvax.Berkeley.EDU> Lines: 22 Organisation: Research School Biological Sciences, Australian National University In article <8805011544.AA28437@ucbvax.Berkeley.EDU>, SEKRETAR@CZHETH5A.BITNET writes: > In a pascal routine, I need to copy a file to another directory. > As the structure of the file is not predefined, the easiest way > to do it would be with a RTL command of the type LIB$COPY_FILE. > > Well, the only routines of the kind I found in RTL are LIB$CREATE_DIR, > LIB$DELETE_FILE and LIB$RENAME_FILE. Am I missing something, or > do I have to search somewhere else? An easy way to copy files of any arbitrary type from within a Pascal (or any other language) routine is by use of the callable Convert (CONV) routines. This is MUCH simpler than messing around with RMS to determine file structure. Contact me directly by electronic mail if you require an example. Eric Zurcher Email: DALLWITZ@RSBS0.ANU.OZ VAX System Manager Phone: 61 62 465029 CSIRO Division of Entomology Telex: 62309 GPO Box 1700 Canberra, ACT, Australia 2601 "Yes, its true! The captial of Australia is Canberra, not Sydney!"