Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!agate!ucbvax!SAMADAMS.PRINCETON.EDU!tr From: tr@SAMADAMS.PRINCETON.EDU (Tom Reingold) Newsgroups: comp.os.msdos.programmer Subject: Re: using "system" in C Message-ID: <9104060340.AA10600@samadams.Princeton.EDU> Date: 6 Apr 91 03:40:25 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: deferred Lines: 15 To my thinking, the solution offered by John Temples is the most reliable and straightforward. I would add that since you may want to preserve the timestamp on the file, that you should look into the stat() and utime() functions. I hope they are provided by your library. They are in my Microsoft library. Used properly, you can set the timestamp on the destination file to be the same as that on the source file. If you don't have them, use DOS calls. I recommend the former because they are clones of UNIX calls, thus your program is more portable. -- Tom Reingold tr@samadams.princeton.edu OR ...!princeton!samadams!tr "Warning: Do not drive with Auto-Shade in place. Remove from windshield before starting ignition."