469,950 Members | 2,304 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

changing the working directory

Alright guys, I am really new to C++, and I wanted to, as my first project, create a command prompt, that pretty much just looks and works like a normal command prompt, except that it has more commands (can't think of any good ones yet). The only problem is that the cd command doesn't work... EDIT: Sorry, I didn't realize i wasn't supposed to post full code.

anyway, It doesn't change the working directory. Like, my code is in C:\Devcpp, so that is the working directory, I go and type CD .. and then type just CD, and it still says the working directory is C:\devcpp
Oct 18 '07 #1
1 1847
9,208 Expert Mod 8TB
Be sure to use \\ instead of \ in your paths.
Oct 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by skip | last post: by
1 post views Thread by Steven Buroff | last post: by
4 posts views Thread by qbproger | last post: by
9 posts views Thread by gopi | last post: by
9 posts views Thread by silverburgh.meryl | last post: by
4 posts views Thread by Acrobatic | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.