delorie.com/archives/browse.cgi | search |
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: How do I feed output of DOS commands into a program? |
Date: | 2 Feb 2004 13:31:37 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 20 |
Message-ID: | <bvljfp$3go$3@nets3.rz.RWTH-Aachen.DE> |
References: | <4017ddaa$1_6 AT Newsfeeds DOT com> <401875b6 DOT 1196777 AT news DOT voyager DOT net> <401e4acd$1_2 AT 127 DOT 0 DOT 0 DOT 1> |
NNTP-Posting-Host: | ac3b07.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 1075728697 3608 137.226.33.205 (2 Feb 2004 13:31:37 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 2 Feb 2004 13:31:37 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Robbie Hatley <loneXwolfintj AT pacxbell DOT net DOT remove DOT xs> wrote: > That's very interesting, but doesn't really constitute "not using > temporary files". It does *to the extent possible*, i.e. if the platform you run this on can get the job done without use of temp files, it will. But note that the fact that a command called "CD" (in upper case) even exists, and prints the current directory if invoked without arguments, is already completely non-portable. You'll be a lot more portable using the POSIX standardized function getcwd(). As to walking through trees: did you have a look at DJGPP's "ftw" for "file tree walker" special function? -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |