How to change directory in command prompt? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to change directory in command prompt?

i need help in understanding this part. Currently when i open the cmd, the directory shows ( C:\Users\hp>) what should i do so that the directory will change into other path. for example, (C:\Users\hp\desktop>) or even other directory? is there anything that you want to add to this?

12th May 2017, 1:07 PM
B H Ä N N
B H Ä N N - avatar
5 Answers
+ 16
Windows? Use cd followed by the directory to change directory. Or open cmd in the windows explorer from that folder.
12th May 2017, 1:09 PM
Tashi N
Tashi N - avatar
+ 9
cd desktop And release directory with cd..
12th May 2017, 1:09 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 8
use "cd" command. if you want to go to Desktop from hp directory then you can use "cd Desktop" while typing directory name you can press Tab for auto completion.
12th May 2017, 1:12 PM
Apel Mahmod
Apel Mahmod - avatar
+ 4
Also try the "help" command. It will give you a list of commands with their descriptions. This is for Windows command line. For Unix based systems it is "man".
12th May 2017, 1:26 PM
Ghauth Christians
Ghauth Christians - avatar
+ 2
thanks guys, for the quick answers. i appreciate it. (:
12th May 2017, 1:18 PM
B H Ä N N
B H Ä N N - avatar