X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: About chdir() Date: 1 Oct 2004 09:48:45 GMT Lines: 12 Message-ID: <2s4nftF1gobiaU2@uni-berlin.de> References: <2s33rfF1gghltU1 AT uni-berlin DOT de> X-Trace: news.uni-berlin.de tubsf8gkUn+jiCCeZQ74Fg53MQ8GiCvNnpmLSHQRSV0f1tGV5fC2FH3Sgs X-Orig-Path: not-for-mail To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Vyom wrote: > How should I use the CD command in system() Not at all. Using system() to cd won't have any useful effect, because you'll only change the working directory of the shell that executes that system() command. This shell will close immediately afterwards, leaving you with no trace of that 'cd' command at all. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.