12
2
Possible Duplicate:
Can windows command line support Linux “cd -”?
Under Linux, I can use cd -
to return to the last directory. How can I do that on Windows?
12
2
Possible Duplicate:
Can windows command line support Linux “cd -”?
Under Linux, I can use cd -
to return to the last directory. How can I do that on Windows?
19
you can use the pushd and popd commands.
pushd will change directory from location a to location b popd will change directory back to directory a
It doesn't work for me, but using cd..
works, thanks to @Акула (below answer)
5
Cmd.exe is an emulation layer for the old MS-DOS, commands are the same :
For the others look at some Ms-Dos table around the web
2This is not what cd - does.
If one is in /a/b/c/d then cd's to /a/e/f, cd -
as a command returns you to /a/b/c/d, whereas cd ..
moves you to /a/e and cd /
moves you to /. – Neal – 2009-12-18T15:18:35.983
You are right i've misunderstanded the question. (What poor figure!) :-( – Акула – 2009-12-18T15:39:48.740
1
Duplicate of this question: http://superuser.com/questions/81755/can-windows-command-line-support-linux-cd
– Snark – 2009-12-18T10:12:02.497