Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!otter.hpl.hp.com!hpopd!dcc From: dcc@hpopd.pwd.hp.com (Daniel Creswell) Newsgroups: comp.os.msdos.programmer Subject: Re: using "system" in C Message-ID: <37390007@hpopd.pwd.hp.com> Date: 5 Apr 91 09:08:04 GMT References: Organization: Hewlett-Packard CCG-PWD, UK. Lines: 7 Try looking at the routines 'execv' and 'execl' which may do the trick. I think you'll find that use of 'system' creates a new environment for the command as it has to create a command.com and then run the program (if it behaves like Unix!). Trouble is you'd have to use 'xcopy' for this I think cos you need to execute another program and copy is resident in command.com. Xcopy doesn't need command.com and so it should be possible to call this directly - provided you can obtain it's path..... Dunno how much help that is but I think it's the only way to go.... Cheers,Dan C.