how to change dir in cmd code example

Example 1: how to change directory in command prompt

To move to a directory(folder) just type cd and follow by name 
i.e cd document {do note that it should be in the same directory(folder)}
just type cd to move to the top of the tree
now to move to a specific folder type with a "/" inbetween
i.e cd windows\system32
When you need to go one folder up, use the "cd.." command.
To access another drive, type the drive's letter, followed by ":"
i.e D:

Example 2: how to change directory in cmd

In windows shell is commanly known as the command prompt or the 
cmd...
to change the directory you can just type cd and type your desired directory 
which is present inside the current directory...

Example 3: move to path command

The cd command can be used to change into a subdirectory,

cd subdirectory_name						-> To go one level into subdir
cd subdirectory_name/subsubdirectory_name	-> To go two levels into subdir

move back into the parent directory,

cd ..\       -> To go back one level
cd ..\..\    -> To go back two levels

move to previos directory,

cd -

move all the way back to the root directory or move to any
given directory

cd C:/Give_Path_to_directory

Example 4: how to move to directories in command prompt

cd Desktop/myDirectory

Example 5: how to change path in cmd to another path?

Directory> cd...
Directory> (directory you want)

Example 6: change directory cmd

cd  
comment to change directory in the cmd

Tags:

Go Example