ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.1 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://www.wikihow.com/Copy-Files-in-Command-Prompt |
| Last Crawled | 2026-04-13 22:29:38 (3 days ago) |
| First Indexed | 2017-10-14 01:28:06 (8 years ago) |
| HTTP Status Code | 200 |
| Meta Title | How to Copy Files in Command Prompt (with Pictures) - wikiHow |
| Meta Description | Do you need to copy and paste files or folders without using the File Explorer? While navigating the file system with Windows Command Prompt (cmd) might seem daunting, it's actually pretty easy once you get the hang of it. This wikiHow... |
| Meta Canonical | null |
| Boilerpipe Text | Download Article
Download Article
Do you need to copy and paste files or folders without using the File Explorer? While navigating the file system with
Windows Command Prompt
(cmd) might seem daunting, it's actually pretty easy once you get the hang of it. This wikiHow will teach you how to copy one or more files from one folder to another from the command line in Windows.
Find out your
file's location
.
You'll need the file's location—also known as a "directory"—in order to tell Command Prompt where to look for the file.
You can find the file's
directory
by going to the file's location in File Explorer and then clicking the URL bar near the top of the File Explorer window.
Most files will be somewhere in the following directory: [drive letter]:\Users\[username] (for example, "C:\Users\Kyle"). This is the directory in which almost every user-created file on your computer is located.
A file on your
desktop
for the above example would be in the "C:\Users\Kyle\Desktop" directory, while a file in the Documents folder would be in the "C:\Users\Kyle\Documents" directory.
If you want to
copy your file
, you'll need to know its name. Keep in mind that file names are case-sensitive in Command Prompt, so you'll need to include the proper capitalization.
Advertisement
Open
Start
.
Click the Windows logo in the bottom-left corner of the screen.
[1]
Doing so will search your computer for the Command Prompt program.
[2]
It's at the top of the Start window. Doing so will open the Command Prompt program.
[3]
Keep in mind that if you're on a
shared
computer (e.g., a school or public PC), you may not be able to access the Command Prompt.
Advertisement
Type in
cd
followed by a space, but don't press
↵
Enter
.
[4]
Enter the directory in which the file that you want to copy is located.
Doing so will reset Command Prompt to look in the entered directory.
Type in
copy
followed by a space, but don't press
↵
Enter
yet.
[5]
Type in your file's name followed by a space, making sure to include the file's extension (e.g.,
.txt
) for a text file. Don't press
↵
Enter
after doing so.
[6]
If there are spaces in the file's name, you need to put quotation marks around them. For example, a file named "Pickles are Good.txt" would be
Pickles" "are" "Good.txt
in Command Prompt.
Type in another directory (e.g.,
C:\Users\[you]\Desktop
into which you want to copy the file.
If you don't do this, the file will be copied to your user
directory
(e.g., "C:\Users\[you]") by default.
Doing so will copy the file into your indicated directory. You can view the copied file by going to the directory in question in your computer's File Explorer.
Advertisement
Type in
cd
followed by a space, then type in the folder's directory and press
↵
Enter
.
[7]
For example, if you want to copy all of the files inside of a
folder
called "Example" that's on your desktop, you'd go to
C:\Users\humpb\Desktop
here.
Type in
robocopy
and then a space, but don't press
↵
Enter
yet.
[8]
Enter a
folder's name
.
Type in the name of the folder that you want to copy, then add a space. Again, don't press the
↵
Enter
key just yet.
As with file names, you'll need to use quotes around any spaces in the folder name.
Type in a directory into which you want to copy the folder's files.
[9]
If there are lots of files in the folder, this can get messy if you copy them into an unorganized folder since the folder itself won't be copied with the files.
Doing so will copy the contents of the folder into your destination folder.
Advertisement
Search
Add New Question
Question
Which command should I use to copy files?
Community Answer
Copy "source path" "destination path". For example, you might copy "C:\Users\qclab\Desktop\Stuff.txt" "P:\IT\Confidential". The quotation marks are optional unless you have spaces in your folder or file names. To copy everything in a folder use *.* as the name and extension. For example, copy "C:\Users\qclab\Desktop\Stuff.txt" "P:\IT\Confidential".
Question
Is it possible to move a PDF file from one folder to another and not have it overwrite another file with the same name by having a different date?
Community Answer
You'll have to rename the PDF file prior to moving it, as two files with the same name can't reside in the same folder.
Question
How can I copy all files from sub directories with a similar name to a different directory?
Community Answer
After you do one, press the up key and then change the name, which shouldn't take up much time.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
If you want to create a new destination folder for a set of copied files, enter the directory for the destination folder (including the destination folder itself) in conjunction with the "robocopy" command.
[10]
Thanks
You can copy all files in a directory by typing
copy *[file type]
(e.g.,
copy *.txt
).
Thanks
If you copy the Desktop folder's contents into a new folder, that new folder will be renamed to "Desktop".
Thanks
Thanks for submitting a tip for review!
Advertisement
Copying files and folders within Command Prompt is potentially dangerous if you don't know what you're doing. Never copy or manipulate any files or folders that you don't understand.
Thanks
Advertisement
References
About This Article
Article Summary
X
1. Type "cd" followed by a space in command prompt, but don't press "enter" yet.
2. Type the name of the directory your filed is located in.
3. Press "enter."
4. Type "copy" followed by a space, but don't press "enter."
5. Type your file's name followed by a space, but don't press "enter."
6. Type in the name of the directory you want to copy the file to.
7. Press "enter" to copy the file.
Did this summary help you?
Thanks to all authors for creating a page that has been read 2,451,071 times.
Is this article up to date?
wikiHow Tech Help Pro:
Level up your tech skills and stay ahead of the curve
Let's go!
X
For over two decades, we’ve been on a mission: to help everyone in the world learn how to do anything. Our articles are human written and expert endorsed to ensure readers like you get reliable, current information.
Before you get back to learning, we would be grateful if you could take a minute to support wikiHow. Any amount helps. Thank you.
-
- |
| Markdown | [Skip to Content](https://www.wikihow.com/Copy-Files-in-Command-Prompt#breadcrumb_1)
[Quizzes](https://www.wikihow.com/Quizzes)
- [PRO](https://www.wikihow.com/Pro)
[Courses Hot](https://www.wikihow.com/Course/Explore) [Guides](https://www.wikihow.com/Guides) [Tech Help Pro](https://www.wikihow.com/Tech-Help-Pro) [Expert Videos](https://www.wikihow.com/wikiHow:Videos-wikiHowPro) [About wikiHow Pro](https://www.wikihow.com/Pro) [Upgrade](https://www.wikihow.com/Copy-Files-in-Command-Prompt#wh-dialog-pro)
- [QUIZZES](https://www.wikihow.com/Quizzes)
[All Quizzes Hot](https://www.wikihow.com/Quizzes) [Love Quizzes](https://www.wikihow.com/Love-Quizzes) [Personality Quizzes](https://www.wikihow.com/Personality-Quizzes) [Trivia Quizzes](https://www.wikihow.com/Trivia-Quizzes) [Taylor Swift Quizzes](https://www.wikihow.com/Taylor-Swift-Quizzes)
- [EDIT](https://www.wikihow.com/Copy-Files-in-Command-Prompt#wh-dialog-edit)
[Edit this Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt#wh-dialog-edit)
- [EXPLORE](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[Tech Help Pro](https://www.wikihow.com/Tech-Help-Pro)[About Us](https://www.wikihow.com/wikiHow:About-wikiHow)[Random Article](https://www.wikihow.com/Special:Randomizer)[Quizzes](https://www.wikihow.com/Quizzes)
[Request a New Article](https://www.wikihow.com/Special:RequestTopic)[Community Dashboard](https://www.wikihow.com/Special:CommunityDashboard)[Trending](https://www.wikihow.com/Trending)[Forums](https://www.wikihow.com/Forums)
[Arts and Entertainment](https://www.wikihow.com/Category:Arts-and-Entertainment)[Artwork](https://www.wikihow.com/Category:Artwork)[Books](https://www.wikihow.com/Category:Books)[Movies](https://www.wikihow.com/Category:Movies)
[Computers and Electronics](https://www.wikihow.com/Category:Computers-and-Electronics)[Computers](https://www.wikihow.com/Category:Computers)[Phone Skills](https://www.wikihow.com/Category:Phone-Skills)[Technology Hacks](https://www.wikihow.com/Category:Technology-Hacks)
[Health](https://www.wikihow.com/Category:Health)[Men's Health](https://www.wikihow.com/Category:Men%27s-Health)[Mental Health](https://www.wikihow.com/Category:Psychological-Health)[Women's Health](https://www.wikihow.com/Category:Women%E2%80%99s-Health)
[Relationships](https://www.wikihow.com/Category:Relationships)[Dating](https://www.wikihow.com/Category:Dating)[Love](https://www.wikihow.com/Category:Love)[Relationship Issues](https://www.wikihow.com/Category:Relationship-Issues)
[Hobbies and Crafts](https://www.wikihow.com/Category:Hobbies-and-Crafts)[Crafts](https://www.wikihow.com/Category:Crafts)[Drawing](https://www.wikihow.com/Category:Drawing)[Games](https://www.wikihow.com/Category:Games)
[Education & Communication](https://www.wikihow.com/Category:Education-and-Communications)[Communication Skills](https://www.wikihow.com/Category:Communication-Skills)[Personal Development](https://www.wikihow.com/Category:Personal-Development)[Studying](https://www.wikihow.com/Category:Studying)
[Personal Care and Style](https://www.wikihow.com/Category:Personal-Care-and-Style)[Fashion](https://www.wikihow.com/Category:Fashion)[Hair Care](https://www.wikihow.com/Category:Hair-Care)[Personal Hygiene](https://www.wikihow.com/Category:Personal-Hygiene)
[Quizzes](https://www.wikihow.com/Quizzes) [Love Quizzes](https://www.wikihow.com/Love-Quizzes) [Personality Quizzes](https://www.wikihow.com/Personality-Quizzes) [Fun Games](https://www.wikihow.com/Generators)
[Arts and Entertainment](https://www.wikihow.com/Category:Arts-and-Entertainment)[Finance and Business](https://www.wikihow.com/Category:Finance-and-Business)[Home and Garden](https://www.wikihow.com/Category:Home-and-Garden)[Relationship Quizzes](https://www.wikihow.com/Relationships#Quizzes)
[Cars & Other Vehicles](https://www.wikihow.com/Category:Cars-%26-Other-Vehicles)[Food and Entertaining](https://www.wikihow.com/Category:Food-and-Entertaining)[Personal Care and Style](https://www.wikihow.com/Category:Personal-Care-and-Style)[Sports and Fitness](https://www.wikihow.com/Category:Sports-and-Fitness)
[Computers and Electronics](https://www.wikihow.com/Category:Computers-and-Electronics)[Health](https://www.wikihow.com/Category:Health)[Pets and Animals](https://www.wikihow.com/Category:Pets-and-Animals)[Travel](https://www.wikihow.com/Category:Travel)
[Education & Communication](https://www.wikihow.com/Category:Education-and-Communications)[Hobbies and Crafts](https://www.wikihow.com/Category:Hobbies-and-Crafts)[Philosophy and Religion](https://www.wikihow.com/Category:Philosophy-and-Religion)[Work World](https://www.wikihow.com/Category:Work-World)
[Family Life](https://www.wikihow.com/Category:Family-Life)[Holidays and Traditions](https://www.wikihow.com/Category:Holidays-and-Traditions)[Relationships](https://www.wikihow.com/Category:Relationships)[Youth](https://www.wikihow.com/Category:Youth)
- [LOG IN](https://www.wikihow.com/Copy-Files-in-Command-Prompt#wh-dialog-login)
### Log in
Social login does not work in incognito and private browsers. Please log in with your username or email to continue.
[Facebook](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[Google](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[wikiHow Account](https://www.wikihow.com/Copy-Files-in-Command-Prompt#wh-dialog-login)
No account yet? [Create an account](https://www.wikihow.com/Special:UserLogin?type=signup)
- [RANDOM](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- [Home](https://www.wikihow.com/Main-Page)
- [Random](https://www.wikihow.com/Special:Randomizer)
- [Browse Articles](https://www.wikihow.com/Special:CategoryListing)
- [TrendingNew](https://www.wikihow.com/Trending)
- Quizzes & Games
- [All QuizzesHot](https://www.wikihow.com/Quizzes)
- [Love Quizzes](https://www.wikihow.com/Love-Quizzes)
- [Personality Quizzes](https://www.wikihow.com/Personality-Quizzes)
- [Fun Games](https://www.wikihow.com/Generators)
- [Dating Simulator](https://www.wikihow.com/Dating-Simulator)
- Learn Something New
- [Forums](https://www.wikihow.com/Forum)
- [Courses](https://www.wikihow.com/Course/Explore)
- [Happiness Hub](https://www.wikihow.com/Academy/Shawn-Achor)
- Explore More
- [Support wikiHow](https://www.wikihow.com/Special:Contribute)
- [About wikiHow](https://www.wikihow.com/wikiHow:About-wikiHow)
- [Log in / Sign up](https://www.wikihow.com/Copy-Files-in-Command-Prompt#wh-dialog-login)
[Terms of Use](https://www.wikihow.com/wikiHow:Terms-of-Use)
[wikiHow is where trusted research and expert knowledge come together. Learn why people **trust wikiHow**](https://www.wikihow.com/wikiHow:Delivering-a-Trustworthy-Experience)
- [Categories](https://www.wikihow.com/Special:CategoryListing "Special:CategoryListing")
- [Computers and Electronics](https://www.wikihow.com/Category:Computers-and-Electronics "Category:Computers and Electronics")
- [Operating Systems](https://www.wikihow.com/Category:Operating-Systems "Category:Operating Systems")
- [Windows](https://www.wikihow.com/Category:Windows "Category:Windows")
- [Command Prompt](https://www.wikihow.com/Category:Command-Prompt "Category:Command Prompt")
# [How to Copy Files in Command Prompt](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[ Download Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
Explore this Article
parts
[1 Preparing to Copy](https://www.wikihow.com/Copy-Files-in-Command-Prompt#Preparing-to-Copy)
[2 Copying Individual Files](https://www.wikihow.com/Copy-Files-in-Command-Prompt#Copying-Individual-Files)
[3 Copying a Folder's Contents](https://www.wikihow.com/Copy-Files-in-Command-Prompt#Copying-a-Folder.27s-Contents)
Other Sections
[Questions & Answers](https://www.wikihow.com/Copy-Files-in-Command-Prompt#qa_headline)
[Tips and Warnings](https://www.wikihow.com/Copy-Files-in-Command-Prompt#tips)
[Related Articles](https://www.wikihow.com/Copy-Files-in-Command-Prompt#relatedwikihows)
[References](https://www.wikihow.com/Copy-Files-in-Command-Prompt#References)
[Article Summary](https://www.wikihow.com/Copy-Files-in-Command-Prompt#summary_wrapper)
**Written by** [Jack Lloyd](https://www.wikihow.com/Author/Jack-Lloyd)
[Last Updated: February 19, 2026](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Fact Checked](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[ Download Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
X
This article was co-authored by wikiHow staff writer, [Jack Lloyd](https://www.wikihow.com/Author/Jack-Lloyd). Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 2,451,071 times.
[Learn more...](https://www.wikihow.com/wikiHow:Delivering-a-Trustworthy-Experience)
Do you need to copy and paste files or folders without using the File Explorer? While navigating the file system with [Windows Command Prompt](https://www.wikihow.com/Open-the-Command-Prompt-in-Windows "Open the Command Prompt in Windows") (cmd) might seem daunting, it's actually pretty easy once you get the hang of it. This wikiHow will teach you how to copy one or more files from one folder to another from the command line in Windows.
## Steps
Part 1
Part 1 of 3:
### Preparing to Copy
[ Download Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
1. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-1-Version-3.jpg)
1
**Find out your [**file's location**](https://www.wikihow.com/Locate-Temporary-Internet-Files "Locate Temporary Internet Files").** You'll need the file's location—also known as a "directory"—in order to tell Command Prompt where to look for the file.
- You can find the file's [directory](https://www.wikihow.com/Change-Directories-in-Command-Prompt "Change Directories in Command Prompt") by going to the file's location in File Explorer and then clicking the URL bar near the top of the File Explorer window.
- Most files will be somewhere in the following directory: \[drive letter\]:\\Users\\\[username\] (for example, "C:\\Users\\Kyle"). This is the directory in which almost every user-created file on your computer is located.
- A file on your [desktop](https://www.wikihow.com/Create-a-Desktop-Shortcut "Create a Desktop Shortcut") for the above example would be in the "C:\\Users\\Kyle\\Desktop" directory, while a file in the Documents folder would be in the "C:\\Users\\Kyle\\Documents" directory.
2. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-2-Version-3.jpg)
2
**Know your file's name.** If you want to [copy your file](https://www.wikihow.com/Copy-Files-in-Linux "Copy Files in Linux"), you'll need to know its name. Keep in mind that file names are case-sensitive in Command Prompt, so you'll need to include the proper capitalization.
Advertisement
3. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-3-Version-2.jpg)
3
**Open [**Start**](https://www.wikihow.com/Use-the-Windows-10-Start-Menu "Use the Windows 10 Start Menu") [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Windowsstart.png).** Click the Windows logo in the bottom-left corner of the screen.[\[1\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-1) X Research source
4. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-4-Version-2.jpg)
4
**Type in `command prompt`.** Doing so will search your computer for the Command Prompt program.[\[2\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-2) X Research source
5. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-5-Version-2.jpg)
5
**Click [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Windowscmd1.png) Command Prompt.** It's at the top of the Start window. Doing so will open the Command Prompt program.[\[3\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-3) X Research source
- Keep in mind that if you're on a [shared](https://www.wikihow.com/Share-Files-Between-Linux-Computers-Using-NFS "Share Files Between Linux Computers Using NFS") computer (e.g., a school or public PC), you may not be able to access the Command Prompt.
Part 2
Part 2 of 3:
### Copying Individual Files
[ Download Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
1. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-6-Version-2.jpg)
1
**Enter the "change directory" command.** Type in `cd` followed by a space, but don't press `↵ Enter`.[\[4\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-4) X Research source
2. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-7-Version-2.jpg)
2
**Type in your file's directory.** Enter the directory in which the file that you want to copy is located.
3. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-8-Version-2.jpg)
3
**Press **`↵ Enter`**.** Doing so will reset Command Prompt to look in the entered directory.
4. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-9-Version-2.jpg)
4
**Enter the "copy" command.** Type in `copy` followed by a space, but don't press `↵ Enter` yet.[\[5\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-5) X Research source
5. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-10-Version-2.jpg)
5
**Enter your file's name.** Type in your file's name followed by a space, making sure to include the file's extension (e.g., `.txt`) for a text file. Don't press `↵ Enter` after doing so.[\[6\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-6) X Research source
- If there are spaces in the file's name, you need to put quotation marks around them. For example, a file named "Pickles are Good.txt" would be `Pickles" "are" "Good.txt` in Command Prompt.
6. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-11-Version-2.jpg)
6
**Enter a destination directory.** Type in another directory (e.g., `C:\Users\[you]\Desktop` into which you want to copy the file.
- If you don't do this, the file will be copied to your user [directory](https://www.wikihow.com/Navigate-the-Windows-Directory "Navigate the Windows Directory") (e.g., "C:\\Users\\\[you\]") by default.
7. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-12-Version-2.jpg)
7
**Press **`↵ Enter`**.** Doing so will copy the file into your indicated directory. You can view the copied file by going to the directory in question in your computer's File Explorer.
Part 3
Part 3 of 3:
### Copying a Folder's Contents
[ Download Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
1. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-13-Version-2.jpg)
1
**Go to the folder's directory.** Type in `cd` followed by a space, then type in the folder's directory and press `↵ Enter`.[\[7\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-7) X Research source
- For example, if you want to copy all of the files inside of a [folder](https://www.wikihow.com/Copy-a-Folder-with-Batch-File "Copy a Folder with Batch File") called "Example" that's on your desktop, you'd go to `C:\Users\humpb\Desktop` here.
2. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-14-Version-2.jpg)
2
**Enter the `robocopy` command.** Type in `robocopy` and then a space, but don't press `↵ Enter` yet.[\[8\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-8) X Research source
3. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-15-Version-2.jpg)
3
**Enter a [**folder's name**](https://www.wikihow.com/Create-a-Folder-Named-Con "Create a Folder Named Con").** Type in the name of the folder that you want to copy, then add a space. Again, don't press the `↵ Enter` key just yet.
- As with file names, you'll need to use quotes around any spaces in the folder name.
4. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-16-Version-2.jpg)
4
**Enter a destination.** Type in a directory into which you want to copy the folder's files.[\[9\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-9) X Research source
- If there are lots of files in the folder, this can get messy if you copy them into an unorganized folder since the folder itself won't be copied with the files.
5. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-17-Version-2.jpg)
5
**Press **`↵ Enter`**.** Doing so will copy the contents of the folder into your destination folder.
## Community Q\&A
Search
[Add New Question]()
- Question
Which command should I use to copy files?

Community Answer
Copy "source path" "destination path". For example, you might copy "C:\\Users\\qclab\\Desktop\\Stuff.txt" "P:\\IT\\Confidential". The quotation marks are optional unless you have spaces in your folder or file names. To copy everything in a folder use \*.\* as the name and extension. For example, copy "C:\\Users\\qclab\\Desktop\\Stuff.txt" "P:\\IT\\Confidential".
**Thanks! We're glad this was helpful.**
**Thank you for your feedback.**
If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even \$1 helps us in our mission. [Support wikiHow](https://www.wikihow.com/wikiHow:Contribute)
[Yes](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [No](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[Not Helpful 21](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Helpful 48](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- Question
Is it possible to move a PDF file from one folder to another and not have it overwrite another file with the same name by having a different date?

Community Answer
You'll have to rename the PDF file prior to moving it, as two files with the same name can't reside in the same folder.
**Thanks! We're glad this was helpful.**
**Thank you for your feedback.**
If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even \$1 helps us in our mission. [Support wikiHow](https://www.wikihow.com/wikiHow:Contribute)
[Yes](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [No](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[Not Helpful 9](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Helpful 18](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- Question
How can I copy all files from sub directories with a similar name to a different directory?

Community Answer
After you do one, press the up key and then change the name, which shouldn't take up much time.
**Thanks! We're glad this was helpful.**
**Thank you for your feedback.**
If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even \$1 helps us in our mission. [Support wikiHow](https://www.wikihow.com/wikiHow:Contribute)
[Yes](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [No](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[Not Helpful 21](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Helpful 26](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[See more answers](https://www.wikihow.com/Questions/Copy-Files-in-Command-Prompt#offset=3)
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
[Submit]()
Advertisement
## Tips
- If you want to create a new destination folder for a set of copied files, enter the directory for the destination folder (including the destination folder itself) in conjunction with the "robocopy" command.[\[10\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-10) X Research source
Thanks
[Helpful 0](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Not Helpful 0](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- You can copy all files in a directory by typing `copy *[file type]` (e.g., `copy *.txt`).
Thanks
[Helpful 0](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Not Helpful 0](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- If you copy the Desktop folder's contents into a new folder, that new folder will be renamed to "Desktop".
Thanks
[Helpful 0](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Not Helpful 0](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
[Submit](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
Thanks for submitting a tip for review\!
Advertisement
## Warnings
- Copying files and folders within Command Prompt is potentially dangerous if you don't know what you're doing. Never copy or manipulate any files or folders that you don't understand.
Thanks
[Helpful 2](https://www.wikihow.com/Copy-Files-in-Command-Prompt) [Not Helpful 0](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
Advertisement
## You Might Also Like
[ How to Copy Files to a USB Using Command Prompt (CMD) ](https://www.wikihow.com/Copy-Files-to-USB-Using-CMD)
[ How to Use MS DOS ](https://www.wikihow.com/Use-MS-DOS)
[ How to Open a Folder in Windows Command Prompt (CMD) ](https://www.wikihow.com/Open-a-Folder-in-Cmd)
[ How to Use the Windows 10 CLI to Move & Copy Files or Folders ](https://www.wikihow.com/Use-the-Command-Terminal-in-Windows-10-to-Move-and-Copy-Files/Folders)
[ How to Copy Files in Linux: A Complete Guide ](https://www.wikihow.com/Copy-Files-in-Linux)
[ How to Navigate to a Different Folder in the Command Prompt ](https://www.wikihow.com/Change-Directories-in-Command-Prompt)
[ How to Copy a Folder with Batch File ](https://www.wikihow.com/Copy-a-Folder-with-Batch-File)
[ How to Copy a Directory with the cp Command on Linux ](https://www.wikihow.com/Copy-a-Directory-Linux)
[ How to Run a Program at the Windows Command Prompt: 2 Ways ](https://www.wikihow.com/Run-a-Program-on-Command-Prompt)
[ How to Navigate a Windows Directory or Folder: 3 Ways ](https://www.wikihow.com/Navigate-the-Windows-Directory)
[ How to Create and Delete Files and Directories from Windows Command Prompt ](https://www.wikihow.com/Create-and-Delete-Files-and-Directories-from-Windows-Command-Prompt)
[ How to Write a Batch File ](https://www.wikihow.com/Write-a-Batch-File)
[3 Easy Ways to Create a New Folder on a Windows PC ](https://www.wikihow.com/Create-a-Folder-on-a-PC)
[ How to Merge Multiple Text Files in Command Prompt, Notepad, & More ](https://www.wikihow.com/Merge-Text-\(.Txt\)-Files-in-Command-Prompt)
Advertisement
## References
1. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-1) <https://grok.lsu.edu/article.aspx?articleid=18026&printable=y>
2. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-2) <https://grok.lsu.edu/article.aspx?articleid=18026&printable=y>
3. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-3) <https://www.freecodecamp.org/news/how-to-open-the-command-prompt-in-windows-10/>
4. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-4) <https://www.computerhope.com/issues/ch000766.htm#command-line>
5. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-5) <https://www.computerhope.com/issues/ch000766.htm#command-line>
6. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-6) <https://www.computerhope.com/issues/ch000766.htm#command-line>
7. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-7) <https://www.computerhope.com/issues/ch000766.htm#command-line>
8. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-8) <https://www.computerhope.com/robocopy.htm>
9. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-9) <https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy>
[More References (1)](https://www.wikihow.com/Copy-Files-in-Command-Prompt#aiinfo)
1. [↑](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_ref-10) <https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy#examples>
## About This Article

Written by:
[Jack Lloyd](https://www.wikihow.com/Author/Jack-Lloyd)
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, [Jack Lloyd](https://www.wikihow.com/Author/Jack-Lloyd). Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 2,451,071 times.
How helpful is this?
Co-authors: 28
Updated: February 19, 2026
Views: 2,451,071
Categories: [Command Prompt](https://www.wikihow.com/Category:Command-Prompt "Category:Command Prompt")
[Article SummaryX](https://www.wikihow.com/Copy-Files-in-Command-Prompt#summary_wrapper)
1\. Type "cd" followed by a space in command prompt, but don't press "enter" yet.
2. Type the name of the directory your filed is located in.
3. Press "enter."
4. Type "copy" followed by a space, but don't press "enter."
5. Type your file's name followed by a space, but don't press "enter."
6. Type in the name of the directory you want to copy the file to.
7. Press "enter" to copy the file.
Did this summary help you?
Yes
No
[In other languages](https://www.wikihow.com/Copy-Files-in-Command-Prompt#other_languages)
[Spanish](https://es.wikihow.com/copiar-archivos-desde-S%C3%ADmbolo-del-sistema)
[Portuguese](https://pt.wikihow.com/Copiar-Arquivos-no-Prompt-de-Comando)
[Italian](https://www.wikihow.it/Copiare-File-dal-Prompt-dei-Comandi)
[Russian](https://ru.wikihow.com/%D1%81%D0%BA%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C-%D1%84%D0%B0%D0%B9%D0%BB%D1%8B-%D0%BF%D0%BE%D1%81%D1%80%D0%B5%D0%B4%D1%81%D1%82%D0%B2%D0%BE%D0%BC-%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D0%BD%D0%BE%D0%B9-%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8)
[German](https://de.wikihow.com/In-der-Kommandozeile-Dateien-kopieren)
[Indonesian](https://id.wikihow.com/Menyalin-Berkas-dalam-Command-Prompt)
[Dutch](https://nl.wikihow.com/Bestanden-kopi%C3%ABren-via-de-opdrachtprompt)
[Chinese](https://zh.wikihow.com/%E5%9C%A8%E5%91%BD%E4%BB%A4%E6%8F%90%E7%A4%BA%E7%AC%A6%E4%B8%AD%E5%A4%8D%E5%88%B6%E6%96%87%E4%BB%B6)
[French](https://fr.wikihow.com/copier-des-fichiers-avec-l%27invite-de-commandes)
[Czech](https://www.wikihow.cz/Jak-kop%C3%ADrovat-soubory-v-p%C5%99%C3%ADkazov%C3%A9m-%C5%99%C3%A1dku)
[Arabic](https://ar.wikihow.com/%D9%86%D8%B3%D8%AE-%D8%A7%D9%84%D9%85%D9%84%D9%81%D8%A7%D8%AA-%D9%85%D9%86-%D8%B3%D8%B7%D8%B1-%D8%A7%D9%84%D8%A3%D9%88%D8%A7%D9%85%D8%B1)
[Thai](https://th.wikihow.com/Copy-%E0%B9%84%E0%B8%9F%E0%B8%A5%E0%B9%8C%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-Command-Prompt)
[Vietnamese](https://www.wikihow.vn/Sao-ch%C3%A9p-T%E1%BA%ADp-tin-trong-Command-Prompt)
[Korean](https://ko.wikihow.com/%EB%AA%85%EB%A0%B9-%ED%94%84%EB%A1%AC%ED%94%84%ED%8A%B8%EB%A1%9C-%ED%8C%8C%EC%9D%BC-%EB%B3%B5%EC%82%AC%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95)
[Hindi](https://hi.wikihow.com/%E0%A4%95%E0%A4%AE%E0%A4%BE%E0%A4%82%E0%A4%A1-%E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A5%89%E0%A4%AE%E0%A5%8D%E0%A4%AA%E0%A5%8D%E0%A4%9F-%E0%A4%AE%E0%A5%87%E0%A4%82-%E0%A4%AB%E0%A4%BE%E0%A4%87%E0%A4%B2%E0%A5%8D%E0%A4%B8-%E0%A4%95%E0%A5%89%E0%A4%AA%E0%A5%80-%E0%A4%95%E0%A4%B0%E0%A5%87%E0%A4%82)
[Turkish](https://www.wikihow.com.tr/Windows-Komut-%C4%B0steminde-Nas%C4%B1l-Dosya-Kopyalan%C4%B1r)
[Persian](https://www.wikihowfarsi.com/%D8%A8%D8%A7-%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87-%D8%A7%D8%B2-Command-Prompt-\(%D8%AE%D8%B7%E2%80%8C%D9%81%D8%B1%D9%85%D8%A7%D9%86\)-%D9%81%D8%A7%DB%8C%D9%84%E2%80%8C%D9%87%D8%A7-%D8%B1%D8%A7-%DA%A9%D9%BE%DB%8C-%DA%A9%D9%86%DB%8C%D9%85)
[Japanese](https://www.wikihow.jp/%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83%97%E3%83%AD%E3%83%B3%E3%83%97%E3%83%88%E3%81%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E3%82%B3%E3%83%94%E3%83%BC%E3%81%99%E3%82%8B)
- [Print](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- [Send fan mail to authors](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
Thanks to all authors for creating a page that has been read 2,451,071 times.
## Is this article up to date?
Yes
No
Advertisement
Cookies make wikiHow better. By continuing to use our site, you agree to our [cookie policy](https://www.wikihow.com/wikiHow:Cookie-Policy).

Written by:
[Jack Lloyd](https://www.wikihow.com/Author/Jack-Lloyd)
wikiHow Technology Writer
Click a star to vote
Co-authors: 28
Updated: February 19, 2026
Views: 2,451,071
### Quizzes & Games
[ The Paperclip Challenge: Can You Outsmart the Detective?Play](https://www.wikihow.com/Generator/Hide-a-Paperclip-Game)
[ Cognitive TestTake Quiz](https://www.wikihow.com/Cognitive-Test)
[ IQ TestTake Quiz](https://www.wikihow.com/IQ-Test)
[ Bible Trivia QuizTake Quiz](https://www.wikihow.com/Bible-Quiz)
### You Might Also Like
[ How to Copy Files to a USB Using Command Prompt (CMD)](https://www.wikihow.com/Copy-Files-to-USB-Using-CMD)
[ How to Use MS DOS](https://www.wikihow.com/Use-MS-DOS)
[ How to Open a Folder in Windows Command Prompt (CMD)](https://www.wikihow.com/Open-a-Folder-in-Cmd)
[ How to Use the Windows 10 CLI to Move & Copy Files or Folders](https://www.wikihow.com/Use-the-Command-Terminal-in-Windows-10-to-Move-and-Copy-Files/Folders)
### Trending Articles
[ Princess Treatment vs Bare Minimum Quiz](https://www.wikihow.com/Relationships/Princess-Treatment-Quiz)
[ Is My Boyfriend Secretly Gay? This Quiz Can Help](https://www.wikihow.com/Relationships/Is-My-Boyfriend-Gay-Quiz)
[ Am I an Alpha, Beta, or Omega Quiz](https://www.wikihow.com/Alpha-Beta-Omega-Test)
[ Who Is My Soulmate Quiz](https://www.wikihow.com/Relationships/Soulmate-Quiz)
### Trending Articles
[ Am I Pretty Quiz](https://www.wikihow.com/Am-I-Pretty)
[ How to Read Face Moles: Lucky and Unlucky Placements](https://www.wikihow.com/Chinese-Mole-Reading)
[ Does My Crush Like Me Quiz](https://www.wikihow.com/Relationships/Does-My-Crush-Like-Me-Quiz)
[ How Well Do I Know Gen Z Slang Quiz](https://www.wikihow.com/Gen-Z-Slang-Quiz)
[](https://www.wikihow.com/Main-Page)
- [Categories](https://www.wikihow.com/Special:CategoryListing "Special:CategoryListing")
- [Computers and Electronics](https://www.wikihow.com/Category:Computers-and-Electronics "Category:Computers and Electronics")
- [Operating Systems](https://www.wikihow.com/Category:Operating-Systems "Category:Operating Systems")
- [Windows](https://www.wikihow.com/Category:Windows "Category:Windows")
- [Command Prompt](https://www.wikihow.com/Category:Command-Prompt "Category:Command Prompt")
wikiHow Newsletter
You're all set\!
Helpful how-tos delivered to
your inbox every week\!
[Sign me up\!](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
By signing up you are agreeing to receive emails according to our privacy policy.
- [Home](https://www.wikihow.com/Main-Page "Main Page")
- [About wikiHow](https://www.wikihow.com/About-wikiHow "About wikiHow")
- [Experts](https://www.wikihow.com/Experts)
- [Jobs](https://www.wikihow.com/wikiHow:Jobs "wikiHow:Jobs")
- [Contact Us](https://www.wikihow.com/wikiHow:Contact-Us "wikiHow:Contact Us")
- [Site Map](https://www.wikihow.com/Special:Sitemap "Special:Sitemap")
- [Terms of Use](https://www.wikihow.com/wikiHow:Terms-of-Use "wikiHow:Terms of Use")
- [Privacy Policy](https://www.wikihow.com/wikiHow:Privacy-Policy "wikiHow:Privacy Policy")
- [Do Not Sell or Share My Info](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- [Not Selling Info](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
- [Contribute](https://www.wikihow.com/wikiHow:Contribute)
- [Privacy & Cookie settings](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
Follow Us
Ă—
wikiHow Tech Help Pro:
Level up your tech skills and stay ahead of the curve
[Let's go\!](https://www.wikihow.com/Tech-Help-Pro)
[X](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
#### Join us in our mission
For over two decades, we’ve been on a mission: to help everyone in the world learn how to do anything. Our articles are human written and expert endorsed to ensure readers like you get reliable, current information. **Before you get back to learning, we would be grateful if you could take a minute to support wikiHow. Any amount helps. Thank you.**
[Let’s do this\!](https://www.wikihow.com/wikiHow:Contribute?utm_source=wikihow&utm_medium=banner&utm_campaign=contribute2&aid=690104)
\-
\-

549
1
ACCOUNT
2
PAYMENT
3
CONFIRMATION
### ORDER SUMMARY
\$
***
\$
Total Due Today
Please select a payment method:
Processing payment...
1
ACCOUNT
2
PAYMENT
3
CONFIRMATION
### Sign Up
ALREADY HAVE AN ACCOUNT?[LOG IN]()
Continue with
Social login does not work in incognito and private browsers. Please create an account to continue.
[Facebook]()[Google]()
Create an account
or
1
ACCOUNT
2
PAYMENT
3
CONFIRMATION
### Log in
DON'T HAVE AN ACCOUNT?[SIGN UP]()
Social login does not work in incognito and private browsers. Please log in with your username or email to continue.
[Facebook]()[Google]()
or
1
ACCOUNT
2
PAYMENT
3
CONFIRMATION
Finish Account Setup
Please enter an email address to finish setting up your account:
## Save this image in high definition.
Download your high definition file of this image so you can save, print, and keep it for personal use.
### One-time purchase
- Get the HD version of this image.
- Full resolution. Ideal for high-quality prints and personal use.
- Yours to keep for personal use.
By continuing, you agree to our [Terms of Use](https://www.wikihow.com/wikiHow:Terms-of-Use), [Privacy Policy](https://www.wikihow.com/wikiHow:Privacy-Policy), and [license terms for Digital Downloads](https://www.wikihow.com/wikiHow:Terms-of-Use#wikiHow-Digital-Downloads). For personal, non-commercial use only. Questions? Please contact [support@wikiHow.pro](mailto:support@wikiHow.pro).
## Thank You
We've emailed you a copy of your image, and you can also download it below.
[Download HD Image](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
By continuing to use wikiHow, you agree to our
[Terms of Service](https://www.wikihow.com/wikiHow:Terms-of-Use) and [Privacy Policy](https://www.wikihow.com/wikiHow:Privacy-Policy).
wikiHow Pro is intended only for your personal, non-commercial use. wikiHow, Inc. reserves the right to terminate subscriptions to wikiHow Pro at any time and for any reason.
Questions? Please contact [support@wikihow.pro](mailto:support@wikihow.pro).
Something went wrong
[Dismiss]() |
| Readable Markdown | [ Download Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
[ Download Article](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
Do you need to copy and paste files or folders without using the File Explorer? While navigating the file system with [Windows Command Prompt](https://www.wikihow.com/Open-the-Command-Prompt-in-Windows "Open the Command Prompt in Windows") (cmd) might seem daunting, it's actually pretty easy once you get the hang of it. This wikiHow will teach you how to copy one or more files from one folder to another from the command line in Windows.
1. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-1-Version-3.jpg)
**Find out your [**file's location**](https://www.wikihow.com/Locate-Temporary-Internet-Files "Locate Temporary Internet Files").** You'll need the file's location—also known as a "directory"—in order to tell Command Prompt where to look for the file.
- You can find the file's [directory](https://www.wikihow.com/Change-Directories-in-Command-Prompt "Change Directories in Command Prompt") by going to the file's location in File Explorer and then clicking the URL bar near the top of the File Explorer window.
- Most files will be somewhere in the following directory: \[drive letter\]:\\Users\\\[username\] (for example, "C:\\Users\\Kyle"). This is the directory in which almost every user-created file on your computer is located.
- A file on your [desktop](https://www.wikihow.com/Create-a-Desktop-Shortcut "Create a Desktop Shortcut") for the above example would be in the "C:\\Users\\Kyle\\Desktop" directory, while a file in the Documents folder would be in the "C:\\Users\\Kyle\\Documents" directory.
2. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-2-Version-3.jpg)
If you want to [copy your file](https://www.wikihow.com/Copy-Files-in-Linux "Copy Files in Linux"), you'll need to know its name. Keep in mind that file names are case-sensitive in Command Prompt, so you'll need to include the proper capitalization.
Advertisement
3. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-3-Version-2.jpg)
**Open [**Start**](https://www.wikihow.com/Use-the-Windows-10-Start-Menu "Use the Windows 10 Start Menu") [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Windowsstart.png).** Click the Windows logo in the bottom-left corner of the screen.[\[1\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-1)
4. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-4-Version-2.jpg)
Doing so will search your computer for the Command Prompt program.[\[2\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-2)
5. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-5-Version-2.jpg)
It's at the top of the Start window. Doing so will open the Command Prompt program.[\[3\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-3)
- Keep in mind that if you're on a [shared](https://www.wikihow.com/Share-Files-Between-Linux-Computers-Using-NFS "Share Files Between Linux Computers Using NFS") computer (e.g., a school or public PC), you may not be able to access the Command Prompt.
1. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-6-Version-2.jpg)
Type in `cd` followed by a space, but don't press `↵ Enter`.[\[4\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-4)
2. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-7-Version-2.jpg)
Enter the directory in which the file that you want to copy is located.
3. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-8-Version-2.jpg)
Doing so will reset Command Prompt to look in the entered directory.
4. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-9-Version-2.jpg)
Type in `copy` followed by a space, but don't press `↵ Enter` yet.[\[5\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-5)
5. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-10-Version-2.jpg)
Type in your file's name followed by a space, making sure to include the file's extension (e.g., `.txt`) for a text file. Don't press `↵ Enter` after doing so.[\[6\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-6)
- If there are spaces in the file's name, you need to put quotation marks around them. For example, a file named "Pickles are Good.txt" would be `Pickles" "are" "Good.txt` in Command Prompt.
6. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-11-Version-2.jpg)
Type in another directory (e.g., `C:\Users\[you]\Desktop` into which you want to copy the file.
- If you don't do this, the file will be copied to your user [directory](https://www.wikihow.com/Navigate-the-Windows-Directory "Navigate the Windows Directory") (e.g., "C:\\Users\\\[you\]") by default.
7. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-12-Version-2.jpg)
Doing so will copy the file into your indicated directory. You can view the copied file by going to the directory in question in your computer's File Explorer.
1. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-13-Version-2.jpg)
Type in `cd` followed by a space, then type in the folder's directory and press `↵ Enter`.[\[7\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-7)
- For example, if you want to copy all of the files inside of a [folder](https://www.wikihow.com/Copy-a-Folder-with-Batch-File "Copy a Folder with Batch File") called "Example" that's on your desktop, you'd go to `C:\Users\humpb\Desktop` here.
2. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-14-Version-2.jpg)
Type in `robocopy` and then a space, but don't press `↵ Enter` yet.[\[8\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-8)
3. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-15-Version-2.jpg)
**Enter a [**folder's name**](https://www.wikihow.com/Create-a-Folder-Named-Con "Create a Folder Named Con").** Type in the name of the folder that you want to copy, then add a space. Again, don't press the `↵ Enter` key just yet.
- As with file names, you'll need to use quotes around any spaces in the folder name.
4. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-16-Version-2.jpg)
Type in a directory into which you want to copy the folder's files.[\[9\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-9)
- If there are lots of files in the folder, this can get messy if you copy them into an unorganized folder since the folder itself won't be copied with the files.
5. [](https://www.wikihow.com/Copy-Files-in-Command-Prompt#/Image:Copy-Files-in-Command-Prompt-Step-17-Version-2.jpg)
Doing so will copy the contents of the folder into your destination folder.
Search
[Add New Question]()
- Question
Which command should I use to copy files?

Community Answer
Copy "source path" "destination path". For example, you might copy "C:\\Users\\qclab\\Desktop\\Stuff.txt" "P:\\IT\\Confidential". The quotation marks are optional unless you have spaces in your folder or file names. To copy everything in a folder use \*.\* as the name and extension. For example, copy "C:\\Users\\qclab\\Desktop\\Stuff.txt" "P:\\IT\\Confidential".
- Question
Is it possible to move a PDF file from one folder to another and not have it overwrite another file with the same name by having a different date?

Community Answer
You'll have to rename the PDF file prior to moving it, as two files with the same name can't reside in the same folder.
- Question
How can I copy all files from sub directories with a similar name to a different directory?

Community Answer
After you do one, press the up key and then change the name, which shouldn't take up much time.
[See more answers](https://www.wikihow.com/Questions/Copy-Files-in-Command-Prompt#offset=3)
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
[Submit]()
Advertisement
- If you want to create a new destination folder for a set of copied files, enter the directory for the destination folder (including the destination folder itself) in conjunction with the "robocopy" command.[\[10\]](https://www.wikihow.com/Copy-Files-in-Command-Prompt#_note-10)
Thanks
- You can copy all files in a directory by typing `copy *[file type]` (e.g., `copy *.txt`).
Thanks
- If you copy the Desktop folder's contents into a new folder, that new folder will be renamed to "Desktop".
Thanks
Thanks for submitting a tip for review\!
Advertisement
- Copying files and folders within Command Prompt is potentially dangerous if you don't know what you're doing. Never copy or manipulate any files or folders that you don't understand.
Thanks
Advertisement
## References
About This Article
[Article SummaryX](https://www.wikihow.com/Copy-Files-in-Command-Prompt#summary_wrapper)
1\. Type "cd" followed by a space in command prompt, but don't press "enter" yet.
2. Type the name of the directory your filed is located in.
3. Press "enter."
4. Type "copy" followed by a space, but don't press "enter."
5. Type your file's name followed by a space, but don't press "enter."
6. Type in the name of the directory you want to copy the file to.
7. Press "enter" to copy the file.
Did this summary help you?
Thanks to all authors for creating a page that has been read 2,451,071 times.
## Is this article up to date?
wikiHow Tech Help Pro:
Level up your tech skills and stay ahead of the curve
[Let's go\!](https://www.wikihow.com/Tech-Help-Pro)
[X](https://www.wikihow.com/Copy-Files-in-Command-Prompt)
For over two decades, we’ve been on a mission: to help everyone in the world learn how to do anything. Our articles are human written and expert endorsed to ensure readers like you get reliable, current information. **Before you get back to learning, we would be grateful if you could take a minute to support wikiHow. Any amount helps. Thank you.**
\-
\-
 |
| Shard | 92 (laksa) |
| Root Hash | 12431216878206919092 |
| Unparsed URL | com,wikihow!www,/Copy-Files-in-Command-Prompt s443 |