Question:
How do I browse to a Directory In Command Prompt?
OIC
2010-05-25 01:31:19 UTC
I need to know how I can browse to a directory (with files in it) in the Windows 7 Command Prompt.
For Example:
Computer\C:\Users\*Insert Name*\My Documents

How could I browse to that in command prompt so I could then do things to files in that directory (eg. rename, copy etc.)

I would appreciate any help and I am active on Yahoo Answers so if it helps I will choose a Best Answer.
Six answers:
2010-05-25 03:07:45 UTC
All previous answers are correct.

I'll just simplify it by doing it in single lines...



First, let's assume your *Insert Name* is 'YOURNAME'

1. Start > Run

Type "cmd" (without the quotes) then press {Enter} or press [OK]

A black window should appear with the a blinking cursor

2. Type "cd\users\YOURNAME\My Documents" (without the quotes) then press {Enter}

The text prompt should be changed to what you have typed



To see the files in that directory, type "dir" (without the quotes) and press {Enter}

To know how to use other switches of "dir" command, type "dir /?" (without the quotes)



To rename a file, say there's a file called 'myfile.txt', type "ren myfile.txt myrenamedfile.abc" (without the quotes) then press {Enter}

It is now named 'myrenamedfile.abc'

type "dir" (without the quotes) then {Enter} to see if it is



To copy a file (or files) to another directory (or to another filename), type "copy myrenamedfile.abc mycopiedfile.log" (without the quotes) then press {Enter}

To know how to use other switches of "copy", type "copy /?" (without the quotes)

type "dir" (without the quotes) then {Enter} to see



To delete a file, type "del /?" (without the quotes) then {Enter} to see how to use it



Cheers!
?
2017-01-19 09:37:29 UTC
1
koppe74
2010-05-25 01:45:05 UTC
Open the command-prompt window...



Use 'cd' (for change directory) to enter the proper directory:

cd c:\Users\Name\My Documents



To list the content of a directory, use 'dir'



To copy, use 'copy'



copy hello.txt hello-copy.txt



To remove a file, use 'del'



del hello-copy.txt



To remove an empty directory, use 'rmdir' (I think, long time since I used this)

To rename a file, use 'ren'



ren oldname.txt newname.txt



To move a file, use 'move'





For most commands, the '/?' switch (e.g. "copy /?") gives you a short help
lantere
2010-05-25 01:55:37 UTC
Ok, step by step:



If you open the CMD window, it will probably be at "C : \ Windows \ System32 >".



Type in

cd\

Press ENTER.

That will take you to the C:\ Drive.



***

Type in

cd Users

Press ENTER.



Type in

cd "*Insert Name*"

Press ENTER.



Type in

cd "My Documents"

Press ENTER.

***



You can do all of that in one step too:

cd Users\"*Insert Name*"\"My Documents"

Press ENTER.



Remember:

Use " before and after directories with spaces in the name.



When you are in

"C : \ Users \ *Insert Name* \ My Documents"

type

dir | more

Press ENTER.



That will show you one page of directories/files.

Press ENTER to view the next page.









==============

Type dir/? to see what you can do with the dir command.

Type ren/? to see how the RENAME command is used.

Type copy/? to see how the COPY command is used.

Type xcopy/? to see how the XCOPY command is used.

Type robocopy/? to see how the ROBOCOPY command is used.



Windows XP had a help file "C : \ Windows \ Help \ ntcmds.chm" that gave you all the CMD commands.

This was removed in Vista.

I haven't checked if it is on Windows 7.



But you can see all the commands here:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true
Chris G
2010-05-25 01:46:04 UTC
At the command prompt, type « C: » to get to your C: drive, and then « cd\ » to get to the root folder.



Then you can type « dir /p » to get a listing of the files and folders in the current folder.  To change to the folder you want, type « cd foldername ».

 
?
2016-06-03 06:28:17 UTC
Your Microsoft word (or possibly your Printer or computer) is trying to reconnect to a domain or Active directory service, you need to disable this feature.This occurs when i computer is taken from a workplace and installed at home and is not used to being stand-alone.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...