delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/01/06:00:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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: <bd472b6d DOT 0409300315 DOT b599807 AT posting DOT google DOT com> <2s33rfF1gghltU1 AT uni-berlin DOT de> <bd472b6d DOT 0409302156 DOT 203cfb5 AT posting DOT google DOT com>
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 <vyom2k4 AT yahoo DOT com> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019