Is there a command to change the current directory to default directory? (I'm not asking about permanently changing the default directory, here!)
For example, if the current directory is "..\xyz" and my default command prompt directory is D:\Abc, is there a way to navigate directly to D:\Abc (without giving >cd D:\Abc)?
Best Answer
There's no option built into
cd
to do this but you could certainly create a.cmd
script file that does it. For example, you could put this into ahome.cmd
file somewhere on your searchPATH
and go toD:\Abc
just by typinghome
: