Is there any command / tool to navigate previous directory in windows command prompt?
In linux usually use
cd -
for previous directory navigation.
command linewindows
Is there any command / tool to navigate previous directory in windows command prompt?
In linux usually use
cd -
for previous directory navigation.
Best Answer
Save the following to eg.
mycd.bat
somewhere in your path:Then always remember to use
mycd
instead ofcd
to change directories and drives.Alternatively, use a
doskey
macro:The only caveat is if you omit the space between
cd
and..
or\
, you will get the builtin version ofcd
not thedoskey
macro... and you still have to remember not to useC:
,D:
etc. to change drive.