"cd -" equivalent on Windows?

5

Possible Duplicate:
Navigate to previous directory in windows command prompt

Is there an equivalent of Linux's cd - (change to previous directory) in Windows?

Steven

Posted 2011-03-24T18:39:36.523

Reputation: 2 049

Question was closed 2011-03-24T19:03:08.760

Answers

4

popd, which is to be used alongside pushd.

Jon

Posted 2011-03-24T18:39:36.523

Reputation: 853

1

Martin Beckett

Posted 2011-03-24T18:39:36.523

Reputation: 6 073

0

Yeah, it's identical, see here:

cd is frequently included built directly into the command line interpreter. This is the case in most of the Unix shells (Bourne shell, tcsh, bash, etc.), cmd.exe and Windows PowerShell on Windows and COMMAND.COM on DOS.

sharpner

Posted 2011-03-24T18:39:36.523

Reputation: 117

-1 because cd is subtly different on Windows/DOS compared to Linux, and the OP question was about a specific option which doesn't work on the windows version. – Joseph Rogers – 2016-11-03T10:38:26.063

Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.

– Tamara Wijsman – 2012-07-16T01:47:44.553