Click here to Skip to main content
15,844,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I open command prompt , I am getting like this:


What should I do to get like this :


What I have tried:

I tried searching in google , but I did not find...
Updated 19-Jul-21 6:37am
Richard MacCutchan 19-Jul-21 11:50am    
That is probably your home directory, and your prompt is set at $P$G. Type "help prompt" at the console and it shows how to change it. Or just type "help" and you can learn all about the commands available.
_-_-_-me 19-Jul-21 12:09pm    
Thank you !
I typed help and enter
It showed all the commands...
It was like this:
CD : Displays the name of or changes the current directory.
Why should we use CD\ ?
Why we should not use only CD ?
Because In the commands it only showed CD.....
Richard MacCutchan 19-Jul-21 12:40pm    
Type "help cd", or help followed by any command name. The information is all there, you just need to read it.


cd ..\..
Share this answer
_-_-_-me 19-Jul-21 12:03pm    
Command Prompt: 11 basic commands you should know (cd, dir, mkdir, etc.) | Digital Citizen[^]

The prompt you're looking at is telling you the directory path you're currently in. To get the C:\, you need to Change Directory to \.
Share this answer
_-_-_-me 19-Jul-21 12:12pm    
Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900