ENH: overhaul of RunCommand on windows, if only win32 had popen...

This commit is contained in:
Bill Hoffman
2002-03-14 11:11:39 -05:00
parent 7c73456401
commit 567edf0e9a
6 changed files with 209 additions and 21 deletions
+2 -2
View File
@@ -247,10 +247,10 @@ public:
* If verbose is false, no user-viewable output from the program
* being run will be generated.
*/
static bool RunCommand(const char* command, std::string& output,
static bool RunCommand(const char* command, std::string& output, const char* directory = 0,
bool verbose = true);
static bool RunCommand(const char* command, std::string& output,
int &retVal, bool verbose = true);
int &retVal, const char* directory = 0, bool verbose = true);
///! change directory the the directory specified
static int ChangeDirectory(const char* dir);