May 10th, 2002, 05:47 PM
Join Date: Feb 2002
Time spent in forums: 1 Day 34 m 29 sec
Reputation Power: 12
Changing directory, running another program
abc.exe exists in C:\test\abc. abc.exe runs and returns to the C:\test\abc directory.
This is causing a problem with abc.exe; I need my proposed program to run abc.exe and then change directory to C:\test before exiting.
It's something that could be done in two lines with a dos bat file, however my program must be a .exe.
I tried making a console app that basicall did this:
// test9.cpp : Defines the entry point for the console application.
int main(int argc, char* argv)
This calls abc.exe, but doesn't change the current directory to c:\test.
any assistance/pointers are appreciated. Thanks.