Computing.Net > Forums > Disk Operating System > Changing Directory in Dos-Prompt

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

Reply to Message Icon

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.



Sponsored Link
Ads by Google

Response Number 1
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

Hope this is of some help.

W.L.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Changing Directory in Dos-Prompt

Can not change directory in ms-dos... www.computing.net/answers/dos/can-not-change-directory-in-msdos/10453.html

how to rename a directory in DOS www.computing.net/answers/dos/how-to-rename-a-directory-in-dos/5381.html

Unhiding directory in DOS www.computing.net/answers/dos/unhiding-directory-in-dos/2953.html