windowscmdchdir

Access directory anywhere using CD in Command Prompt (Windows)


I want to access a directory using the CHDIR (CD) command in CMD without typing the entire path. For example:

C:\Program Files> cd Coding

And then, the result I want is:

C:\Users\Shadow\Documents\Coding>

Is it possible to be done? If yes, how can I do it?


Solution

  • You can add a system variable which variable is Coding and value is C:\Users\Shadow\Documents\Coding.
    Now you can use cd %Coding% to go to your desire path.