X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.131.211 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: About chdir() Organization: Systematic Software Message-ID: References: <2s33rfF1gghltU1 AT uni-berlin DOT de> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 Date: Fri, 01 Oct 2004 18:51:16 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw1no 1096656676 24.71.223.147 (Fri, 01 Oct 2004 12:51:16 MDT) NNTP-Posting-Date: Fri, 01 Oct 2004 12:51:16 MDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 30 Sep 2004 22:56:46 -0700 in comp.os.msdos.djgpp, vyom2k4 AT yahoo DOT com (Vyom) wrote: >Also, > >How should I use the CD command in system() > >system("cd \"program files\" "); > >or should the space be escaped? Use the chdir() and getcwd() functions instead, just like in the example program posted above. Escapes to system() only affect the spawned shell environment and not the program! Read 'info libc a system' for more details: this function is highly customized for DJGPP. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply