Click here to Skip to main content
15,949,686 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:

C:\Users\CG-DTE>


What should I do to get like this :

C:\>

What I have tried:

I tried searching in google , but I did not find...
Posted
Updated 19-Jul-21 5:37am
Comments
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    
Okay
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.
But,
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.

Ahem...

cd ..\..
 
Share this answer
 
v2
Comments
_-_-_-me 19-Jul-21 12:03pm    
OKAY
:-)
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
 
Comments
_-_-_-me 19-Jul-21 12:12pm    
Okay
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