You can change drive in command prompt from C: drive to D: drive very easily.Just you have to the follow the simple steps,if you are a Windows operating system .
Simple Steps to change drive in Command Prompt from C: drive to D: drive :
- Go to the start button and search for “cmd”.
- In the search result Command prompt will appear,just click on it to enter the Command prompt.
- By default, in Windows the Command prompt starts with C: drive.As you can see below the Command prompt is started with my default administrator directory.
- At start of Command prompt, it opens with : C:usersuser-name>.
- To change drive from C: to D: at the end of C:usersuser-name> type D:
- Now your default drive will change from C drive to D drive.
- You can see changed drive in the picture below.
- Now If you wan to perform task in D: drive to any file then you have to give here path directory and press enter button.The command prompt will display the path of your file.
- You can also follow this step to change the drive from C: drive to G: drive,C: drive to H: drive but only in the condition if that directory is in use otherwise it will show message there that the specified directory is not ready.
- Now to come out of D: drive type C: after D:>
- Again the command prompt will display C:usersuser-name>
- To go to the C: drive type cd..
- After that it will display C:users>
- Again type cd.. and it will come out of the user directory to the C: drive.
- Now if you want to work with any file in C: drive then specify the path directory of the file.
These are the steps how you can change the drive in command prompt.You can follow the same steps like C: drive to D: drive for the drives with different name.