changing the working directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohaakilla51
    New Member
    • Jul 2007
    • 39

    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
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Be sure to use \\ instead of \ in your paths.

    Comment

    Working...