Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Changing Directory in Dos-Prompt
Name: Lirosan Date: February 8, 1999 at 04:41:34 Pacific
Comment:
Hi there.
I am writing a Visual C++ Console App ( Win 32). I want the program to change the directory from which it is called. I assume that I need to call the DOS CHDIR command. But when I use WinExec or _execl, the prompt opens a new process, and doesn't change anything in the current process. If you can help, e-mail me Lirosan.
Name: World Library Date: February 8, 1999 at 15:26:58 Pacific
Reply:
To go from c: to g: G: In C:\mystuff\more\frogs to c: cd\(enter) In C:\mystuff\more\frogs to C:\mystuff\more cd.. (enter) cd.. will take you back one dir at a time cd\ takes you back to the root B: takes you to B: drive cd stuff takes you to stuff