You are viewing the article How to Copy Files in Command Prompt at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 48,153 times.
This is an article that shows you how to use the Windows Command Prompt to copy files or folders.
Steps
Prepare before copying
- You can find the file’s path by going to the file’s location in File Explorer and clicking the path bar near the top of the window.
- Most files have the following path: [Drive Name]:Users[Username] (eg “C:UsersKhanh”). This is the path to the location where most files created by computer users are saved.
- The desktop file related to the above example will be “C:UsersKhanhDesktop”, and the file in the Documents folder will have the path “C:UsersKhanhDocuments”
by clicking the Windows icon in the lower left corner of the screen.
Command Prompt at the top of the Start window to open this program.
- Note, you cannot access the Command Prompt if you are using a shared computer (such as a computer at school or in a public place).
Copy files
- If there is a space in the filename, you need to enclose the space in quotes. For example, the filename “Bai tap Toan.txt” will become Bai" "tap" "Toan.txt in Command Prompt.
- If this step is not performed, the file will be copied to the user directory (e.g. “C:Users[your name]”) by default.
Copy data of folder
- For example, if you wanted to copy all the files in the “Example” folder stored on the desktop, you would enter C:UsershumpbDesktop here.
- Similar to filenames, spaces in directory names must be enclosed in double quotes.
- If the root directory has many files, copying those files to another folder that already has a lot of data will confuse you because you cannot copy the original directory.
Advice
- You can copy all files in a directory by typing the command copy *[file extension] (eg copy *.txt ).
- If you want to create a new destination folder to save the copied files, you will enter the path to the destination folder (including the name of the destination folder) along with the “robocopy” command. [1] X Research Source
- If you copy the Desktop folder’s data to the new folder, the new folder will be renamed “Desktop”.
Warning
- Copying files and folders in Command Prompt is often very dangerous if you do not know how to manipulate. Don’t copy or change any files or folders if you don’t know it well.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 48,153 times.
This is an article that shows you how to use the Windows Command Prompt to copy files or folders.
Thank you for reading this post How to Copy Files in Command Prompt at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: