🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 189 (from laksa087)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
22 hours ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://www.lifewire.com/copy-command-2625842
Last Crawled2026-04-10 16:09:40 (22 hours ago)
First Indexed2016-11-08 20:26:32 (9 years ago)
HTTP Status Code200
Meta TitleCopy Command in CMD: Examples, Options, and Switches
Meta DescriptionEffortlessly duplicate files in Windows using the copy command in CMD. Explore examples, options, and switches for seamless file management.
Meta Canonicalnull
Boilerpipe Text
The Download The copy command helps you duplicate a file and place it somewhere else on your computer. You can copy multiple files at once and even rename them using the copy command. The copy Command Prompt command duplicates a file, allowing you to store the copy in a location of your choice. This command lets you copy a file using its specific name and file extension or employ a wildcard to copy multiple files simultaneously, regardless of file names or extensions. It offers options for verifying successful file copies and suppressing overwrite prompts for files with the same name. Copy Command Availability Copy Command Options (Windows 11 Command Prompt). The copy command is accessible from the Command Prompt in Windows 11 , Windows 10 , Windows 8 , Windows 7 , Windows Vista , and Windows XP . It's also available in the Advanced Startup Options and System Recovery Options repair/recovery menus. Certain copy command options and syntax may vary based on the operating system. Copy Command Syntax The command follows this general format: copy  [ /d ] [ /v ] [ /n ] [ /y  |  /-y ] [ /z ] [ /l ] [ /a  |  /b ]  source  [ /a  |  /b ] [ +   source  [ /a  |  /b ] [ +  ...]] [ destination  [ /a  |  /b ]] [ /? ] Copy Command Options Item Explanation /d Allows the destination file to be created decrypted. /v Verifies that new files are written correctly. /n Uses short file name, if available, when copying a file with a non-8dot3 name. /y Suppresses confirmation prompts to overwrite the destination file if it's the same name as the source file. /-y Shows confirmation prompts to overwrite a file if the source file name is identical to the destination file name. /z Copies networked files in restartable mode. /l Copies the link to the source instead of the actual file that the source points to. This is only relevant if the source is a symbolic link. /a Indicates an ASCII text file. /b Indicates a binary file. source  This is the location and name of the file you want to copy. The source may not be a folder, and you may not use wildcard characters (the asterisk). destination This is the location and/or file name to which the file specified in the source should be copied /? Use the  help switch  with the copy command to show detailed help about the command's several options. You can append files by selecting several source files but specifying only one destination file. Copy Command Examples Here are several examples of how to use the copy command: Copy to a Different Folder copy Z:\Software\program.iso C:\Users\Jon\Downloads\Programs\ This example copies  program.iso  from the  Z:  drive to the user's Programs  folder. Take note of the space between these commands. It's not immediately obvious, but the only spaces in this copy command example are after copy and between the source and destination files. Copy and Rename copy Y:\install\j93n.exe Y:\more\m1284.msi You can use the copy command to rename a file and change its file extension. In this example, the j93n.exe file is copied to a new folder on the Y: drive as m1284.msi. This isn't a file conversion technique (i.e., the EXE file isn't actually being converted to MSI ). Instead, it's a way to make an identical copy but with the destination file saved under a different name and in a different folder. copy D:\i386\atapi.sy_ C:\Windows\atapi.sys In the example above, the  atapi.sy file, located in the i386 folder on the Windows XP installation CD, is copied to the C:\Windows directory as atapi.sys. Unlike the Y: drive example, this one is more realistic since copying files from a disc is a common practice when fixing specific Windows problems. Copy to Current Path copy D:\readme.htm In this example, the copy command has no specified destination, so the readme.htm file is copied to the directory from which you typed the copy command. For instance, if you type copy d:\readme.htm from the C:\Windows> prompt, the HTM file will be copied to C:\Windows. Copy Only Certain File Types copy /y /v C:\Users\Jon\Downloads\*.mp3 C:\Users\Jon\Music\DownloadedMusic\ This command copies all MP3 files (*.mp3) from the Downloads folder to the Music\DownloadedMusic \ folder. Ensure that every file is copied, even if one with the same name already exists in DownloadedMusic , by using the /y switch. Verify the copy with the /v switch to see if the files were successfully copied or if an error occurred during the process. A folder must already exist in the destination location before the copy command can transfer files to it. Create new folders in Command Prompt with the mkdir command. Merge Files Into One copy Z:\file1.txt+Z:\file2.txt+Z:\file3.txt Z:\combined.txt This command will merge three  TXT  files into a new file called combined.txt. Each file to be merged should be separated by a plus sign (+) without spaces. You can also use the asterisk to append multiple files. For example, replace individual .txt entries with Z:\*.txt to merge every TXT file from the Z: drive into one. Copy Related Commands This command is similar to the xcopy command , but unlike the copy command, xcopy also works on folders. It's not necessary to use a command if you'd rather copy a file in Windows using File Explorer . Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why!
Markdown
​ G A S REGULAR [Skip to content](https://www.lifewire.com/copy-command-2625842#main) Menu [Lifewire](https://www.lifewire.com/) Tech for Humans - [NEWS](https://www.lifewire.com/news-4795879) NEWS [See All News](https://www.lifewire.com/news-4795879) [![A Dell Alienware gaming desktop with visible internal components and illuminated lighting details](https://www.lifewire.com/thmb/6tlrmGPRoNMYWk7Ll7Ha8d0thcE=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/lifewire-dell-alien-gaming-desktop-4c37ca4078034a7290599d069c6f6edc.jpg) Our Review of the Alienware Aurora Gaming PC—and it's \$550 off Right Now](https://www.lifewire.com/dell-alienware-aurora-gaming-desktop-review-11932684) [![A lineup of Samsung Galaxy S26 Ultra smartphones showing their camera modules and styluses](https://www.lifewire.com/thmb/YxWqaQpqC6j-1FZsYmJSprkBwNo=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/samsung-galaxy-s26-ultra-5eca4675c4e34040a4a71eded5b6df2b.jpg) Samsung’s Galaxy S26 Ultra Is Faster, Smarter, and More Private](https://www.lifewire.com/samsung-galaxy-s26-officially-revealed-11914339) [![Closeup of a smartphone focusing on its camera lenses and side buttons](https://www.lifewire.com/thmb/NZJtV8Ha6Ru-yXyDRJw6bWYXwTg=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/samsung-galaxy-s26-closeup-7f23fa1764bb4787a2f12170fe2c1727.jpg) Galaxy S26 Preorders Start at \$900 Off on Verizon](https://www.lifewire.com/galaxy-preorders-verizon-11914269) [![A robot pointing at paper next to a human hand](https://www.lifewire.com/thmb/jMjLUktZrSktHuEkzEM6Y_RTY3Y=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/GettyImages-2204928862-a400a24f13bc45038cfce9bbf11ebc88.jpg) This Service Replicates Your Handwriting With AI](https://www.lifewire.com/this-service-replicates-your-handwriting-with-ai-11914000) [![Numerous green three-dot chat icons on a field with a central prominent one](https://www.lifewire.com/thmb/hidSJjFloRtvbPSnFUxqgMyCLuY=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/GettyImages-2227030763-486b0ec92c844875818c4f30e028f1c1.jpg) WhatsApp Could Soon Change How You Send Messages](https://www.lifewire.com/whatsapp-scheduled-messages-11912817) [![Smartphone displaying a listening interface on the screen part of a virtual assistant feature](https://www.lifewire.com/thmb/S7YuMi9C2nKzbF5JA035-T17pxs=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/new-bixby-oneui-8.5-983d3693fec7422095bb185832e53f7f.jpg) Bixby Update Improves Conversation](https://www.lifewire.com/bixby-update-improves-conversation-11912019) [![A person with facial recognition markers within a focus frame](https://www.lifewire.com/thmb/NhEiPdlt2qnJ5936bvcMY_lviAg=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/GettyImages-1047393260-c6c2ce0cabcd4626a1dc9775d59be25a.jpg) Parents Should Understand What Facial Age Checks Really Mean](https://www.lifewire.com/biometric-id-rollout-kids-apps-11909555) [![Two hands holding smartphones against a clouded sky backdrop](https://www.lifewire.com/thmb/KCl4jhb5jRPp7_0OuE3HTIfLHck=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/GettyImages-489921465-b23b409d369b47adb85fc448b472985d.jpg) Pixel 9 Quick Share Now Works With AirDrop](https://www.lifewire.com/pixel-9-airdrop-support-11908564) [![Side view of a smart treadmill with a sleek design and a tablet holder on the front console](https://www.lifewire.com/thmb/KH4c9ArGccL54eEfbFffCS1EOww=/210x138/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/urevo-cybermega-smart-treadmill-profile-74f0dae40c1c4ea2934db9929d1a4906.jpg) This Smart Treadmill Is Built for Marathon Training](https://www.lifewire.com/smart-treadmill-for-marathon-training-11908035) - [WHAT TO BUY](https://www.lifewire.com/best-products-4781319) WHAT TO BUY - [ALL CATEGORIES](https://www.lifewire.com/best-products-4781319) - [Tech Buying Guides](https://www.lifewire.com/tech-buying-guides-8641510) - [Phones & Accessories](https://www.lifewire.com/phone-reviews-4102642) - [Headphones & Speakers](https://www.lifewire.com/audio-reviews-4102649) - [Smart Home](https://www.lifewire.com/smart-home-and-gadget-reviews-4102646) - [Software & Services](https://www.lifewire.com/software-reviews-4102744) - [Home Entertainment](https://www.lifewire.com/home-theater-reviews-4689586) - [Computers & Laptops](https://www.lifewire.com/computer-and-laptop-reviews-4102643) - [Games & Consoles](https://www.lifewire.com/games-console-reviews-4102640) - [Wearables](https://www.lifewire.com/wearable-reviews-4689613) - [Home Networking](https://www.lifewire.com/networking-reviews-4689609) - [Deals and Gifts](https://www.lifewire.com/tech-deals-and-gifts-8629583) DEALS & GIFTS WE LOVE ![lifewire.nav.commerce.2]() ![lifewire.nav.commerce.2](https://www.lifewire.com/thmb/C2md9tQcVkvc1s_sbfQsrNPUkMI=/771x369/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/lifewire_nav_commerce_2-2298b546f588467a916a152a776441a1.png) - [The Best Target Tech Deals](https://www.lifewire.com/tech-deals-and-gifts-8629583) - [Our Favorite Tech Deals at Best Buy](https://www.lifewire.com/amazon-tech-deals-8700021) - [Walmart's Top Tech Deals Right Now](https://www.lifewire.com/amazon-tech-deals-8700021) - [The Best Tech Gifts for Anyone, Anytime](https://www.lifewire.com/tech-deals-and-gifts-8629583) - [The Most Awesome Tech Deals Anywhere](https://www.lifewire.com/amazon-tech-deals-8700021) [All Tech Deals & Gifts](https://www.lifewire.com/tech-deals-and-gifts-8629583) COMPUTERS & ACCESSORIES ![lifewire.nav.commerce.3]() ![lifewire.nav.commerce.3](https://www.lifewire.com/thmb/ZxNsv71c-tIg8YkqYaeQkXvmNmc=/772x369/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/lifewire_nav_commerce_3-be77bbb1b8f64280978f2c90bf580fa0.png) - [The Best UPS Battery Backups](https://www.lifewire.com/best-uninterrupted-power-supplies-4142625) - [Top-rated Mesh Wi-Fi Network Systems](https://www.lifewire.com/best-mesh-wi-fi-network-systems-4139748) - [External Hard Drives We Recommend](https://www.lifewire.com/best-external-hard-drives-4050413) - [Must-Have Ergonomic Keyboards](https://www.lifewire.com/best-ergonomic-keyboards-4147386) - [The Best Vertical Mice This Year](https://www.lifewire.com/best-vertical-mice-6753625) [All Computers & Accessories](https://www.lifewire.com/computer-and-laptop-reviews-4102643) PHONES & ACCESSORIES ![lifewire.nav.commerce.4]() ![lifewire.nav.commerce.4](https://www.lifewire.com/thmb/2Ljyo6Hw_UWJssYpql46dYAWYN4=/772x369/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/lifewire_nav_commerce_4-e226f81eeac34f7a97bb58a5cf2b11f5.png) - [Where to Buy Your Next Phone](https://www.lifewire.com/best-places-to-buy-cell-phones-580000) - [The Best Charging Stations This Year](https://www.lifewire.com/best-charging-stations-4155740) - [Most Popular Bluetooth Speakers](https://www.lifewire.com/best-waterproof-bluetooth-speakers-4173025) - [Gotta Have It: Waterproof Phone Cases](https://www.lifewire.com/best-waterproof-phone-cases-4158190) - [Our Fave Portable Keyboards](https://www.lifewire.com/best-wireless-keyboards-for-travel-4177695) [All Phones & Accessories](https://www.lifewire.com/phone-reviews-4102642) - [HOW TO](https://www.lifewire.com/computers-laptops-and-tablets-4781146) HOW TO - [ALL CATEGORIES](https://www.lifewire.com/computers-laptops-and-tablets-4781146) - [Phones](https://www.lifewire.com/mobile-phones-4781509) - [Computers](https://www.lifewire.com/computers-laptops-and-tablets-4781146) - [Smart & Connected Life](https://www.lifewire.com/smart-and-connected-life-4781519) - [Streaming](https://www.lifewire.com/streaming-how-tos-help-and-tips-4781567) - [Gaming](https://www.lifewire.com/gaming-4781445) - [Social Media](https://www.lifewire.com/social-media-4781534) - [Software & Apps](https://www.lifewire.com/software-and-apps-4781541) - [Home Theater](https://www.lifewire.com/home-theater-and-entertainment-4781451) - [Internet & Security](https://www.lifewire.com/internet-networking-and-security-4781467) - [Email & Messaging](https://www.lifewire.com/email-messaging-and-video-calls-4781395) PHONES & CONNECTIONS ![PHONES & CONNECTIONS]() ![PHONES & CONNECTIONS](https://www.lifewire.com/thmb/1jUHY3GVMr2JD3cJzw8ZvK2gu9Q=/1000x333/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/HowTo_Phones-4986cbb71eec409fb586a37e3e0fc33b.png) - [iPhone v. Android: Which Is Best For You?](https://www.lifewire.com/iphone-vs-android-best-smartphone-2000309) - [Before You Buy an Unlocked Smartphone](https://www.lifewire.com/before-you-buy-unlocked-phones-577494) - [The Best Apps for Your Phone](https://www.lifewire.com/best-mobile-apps-4157439) - [How to Check Your Data Usage](https://www.lifewire.com/check-mobile-data-usage-4589301) - [How to Create Group Chat Names](https://www.lifewire.com/how-to-create-group-chat-names-4176304) [All Phone How To’s](https://www.lifewire.com/mobile-phones-4781509) COMPUTERS & INTERNET ![COMPUTERS & INTERNET]() ![COMPUTERS & INTERNET](https://www.lifewire.com/thmb/ET51ABCwWBTletzUuHrK9bZXzl8=/1000x333/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/HowTo_Computers-28f36cf9111a4e14aa557ed6c6183653.png) - [5 Things to Do With a New Computer](https://www.lifewire.com/first-things-you-should-do-with-your-new-computer-2625779) - [The Best Ways to Speed Up Your Computer](https://www.lifewire.com/speed-up-your-computer-3506852) - [How to Network a Printer](https://www.lifewire.com/networking-a-printer-817579) - [5 Ways to Back up Your Data](https://www.lifewire.com/ways-to-back-up-your-data-2640426) - [How to Choose a Computer Monitor](https://www.lifewire.com/choosing-a-computer-monitor-5204228) [All Computer How To’s](https://www.lifewire.com/computers-laptops-and-tablets-4781146) STREAMING & ENTERTAINMENT ![STREAMING & ENTERTAINMENT]() ![STREAMING & ENTERTAINMENT](https://www.lifewire.com/thmb/xkgMG-bnpvmxZip_ipwSLUGjfqk=/1000x333/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/HowTo_Streaming-b1314997a00a440b991ad46d81d56038.png) - [Cable vs. Streaming](https://www.lifewire.com/cable-vs-streaming-5082949) - [What to Know Before Buying a Smart TV](https://www.lifewire.com/choosing-a-smart-tv-5204720) - [The Best TV Streaming Services to Try](https://www.lifewire.com/best-tv-streaming-services-for-cord-cutters-5084992) - [Where to Watch Free Movies Online](https://www.lifewire.com/watch-free-movies-online-1356647) - [The Best Free Music Streaming Sites](https://www.lifewire.com/top-places-to-listen-to-free-music-online-1356649) [All Streaming How To’s](https://www.lifewire.com/streaming-how-tos-help-and-tips-4781567) - [FEATURES](https://www.lifewire.com/windows-4781566) FEATURES - [![Computer and hands close up illustrate the concept of artificial intelligence intersecting with humans and daily life.]() ![Computer and hands close up illustrate the concept of artificial intelligence intersecting with humans and daily life.](https://www.lifewire.com/thmb/HkONQq5zPXfHst-EQTzodPIPJRI=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/AI_Choreograph_GettyImagesPlus-1473211827_CROPPED-137fc9eef04a43a79554344a6f11d1b7.jpg) AI & Science](https://www.lifewire.com/artificial-intelligence-and-science-6386405) - [![Woman working from home attending a video conference call.]() ![Woman working from home attending a video conference call.](https://www.lifewire.com/thmb/uDtlQwy1ZqA13VV5JdOqhg2OW68=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/HomeOfficeCentral_MorsaImages_GettyImages-1369568023_vert1409-c9574b1d088a42aa8e5b62cc13c3bb0b.jpg) Home Office Central](https://www.lifewire.com/working-from-home-4799956) - [![Overhead shot of a parent and child using different types of technology.]() ![Overhead shot of a parent and child using different types of technology.](https://www.lifewire.com/thmb/XQfSMfhZpbmSfoqaWsojaqZEswk=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/FamilyTech_GettyImages-528922090_mactrunk_CROPPEDv1745-2100f4a2c6e54112b4aaefa7d73ad75e.jpg) Family Tech Tips](https://www.lifewire.com/family-tech-4800905) - [![Female gamers playing during an e-sports tournament. ]() ![Female gamers playing during an e-sports tournament. ](https://www.lifewire.com/thmb/CjqB0Pk0fUj0Tw_8pdFRcjZZ25A=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/WomeninGaming_GettyImages-1395688501_Maskot_Getty_CROPPED-879a39555c2b4c869413033cb8b13112.jpg) Women in Gaming](https://www.lifewire.com/women-gaming-5323087) - [![A group of hexagonal portrait pods showing faces of all genders and races.]() ![A group of hexagonal portrait pods showing faces of all genders and races.](https://www.lifewire.com/thmb/MuZMHmwhxFrWH7FmeTrY3OrTs0s=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/TechLeaders_GettyImages-1145150936_CROPPED2-ee3a30f68b494acf8196f46f29680b70.jpg) Up & Coming Tech Leaders](https://www.lifewire.com/tech-leaders-5323069) - [![A leafy hand and a robot hand touching fingers.]() ![A leafy hand and a robot hand touching fingers.](https://www.lifewire.com/thmb/fxTkV6WtKE82Yk7N0Qz__P0Ie4k=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/ecotech_robothands_gettyimages-1179633351_koya79_cropped_1745_v3-c9e218ef95494c239b2edfb8294fe2a1.jpg) Eco-friendly Technology](https://www.lifewire.com/eco-5089303) - [![Open suitcase under hand holding a smartphone and headphones lying nearby.]() ![Open suitcase under hand holding a smartphone and headphones lying nearby.](https://www.lifewire.com/thmb/iZiCpbRSCz8RojdrehWr4_jeUDI=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/TravelTech_GettyImages-1410662282_CROPPED_d3sign-03c2cdf5be314894b99757426813be51.jpg) Traveling With Tech](https://www.lifewire.com/travel-tech-4781532) - [![Woman streaming shows on TV with popcorn and remote in hand]() ![Woman streaming shows on TV with popcorn and remote in hand](https://www.lifewire.com/thmb/l-r2SfXVi-J6FmExDLrIcApcYSk=/180x120/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/Streaming_GettyImages-1317927924_grinvalds_CROPPED-71ab52546b8b477ca2c0788bc26d150f.jpg) What to Watch: TV, Movies, & More](https://www.lifewire.com/streaming-tv-movies-4781586) - [![Hands touching a rendered futuristic instrument panel of vehicle.]() ![Hands touching a rendered futuristic instrument panel of vehicle.](https://www.lifewire.com/thmb/9Yt_RjRUC9OKjWNte1YSKLjW9fs=/564x250/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/ConnectedCarTech_metamorworks_GettyImages-966859036_CROPPED-a9460403602c4b67a7a8c1acd599c9be.jpg) Connected Car Tech From batteries to connecting your phone via bluetooth and asking for help to navigate the way home, your connected car is part of your life. We'll help you figure it all out.](https://www.lifewire.com/connected-car-tech-4781520) - [![Hand holding a remote control and pointing it at a huge home entertainment system. ]() ![Hand holding a remote control and pointing it at a huge home entertainment system. ](https://www.lifewire.com/thmb/P7rRfkINfv1vuvMta_Lxbru6Ke0=/564x250/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/HomeTheater_GettyImages-1157313674_DennisFischerPhotography_CROPPED-cdaa99c3a6af4fd8a666aedc8c41cd89.jpg) Home Entertainment Whether you want to build your own home theater or just learn more about TVs, displays, projectors, and more, we've got you covered.](https://www.lifewire.com/home-theater-and-entertainment-4781451) - [ABOUT US](https://www.lifewire.com/about-us-5081224) ABOUT US [Contact Us](https://www.lifewire.com/about-us-5081224#toc-contact-us) ![Lifewire About Us](https://www.lifewire.com/thmb/iKsuIZz0D95N-5BmEzDH8SoHQrw=/898x296/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/AboutUs-4a897bc6188c4714977876be476cae9e.png) Search - [Tech Deals Up to 51% Off](https://www.lifewire.com/amazon-tech-deals-8700021) - [Asus ZenScreen Sale](https://www.lifewire.com/asus-zenscreen-portable-monitor-deal-11908792) - [Tech Deals Up to 51% Off](https://www.lifewire.com/amazon-tech-deals-8700021) - [Asus ZenScreen Sale](https://www.lifewire.com/asus-zenscreen-portable-monitor-deal-11908792) - NEWS - [Our Review of the Alienware Aurora Gaming PC—and it's \$550 off Right Now](https://www.lifewire.com/dell-alienware-aurora-gaming-desktop-review-11932684) [Samsung’s Galaxy S26 Ultra Is Faster, Smarter, and More Private](https://www.lifewire.com/samsung-galaxy-s26-officially-revealed-11914339) [Galaxy S26 Preorders Start at \$900 Off on Verizon](https://www.lifewire.com/galaxy-preorders-verizon-11914269) [This Service Replicates Your Handwriting With AI](https://www.lifewire.com/this-service-replicates-your-handwriting-with-ai-11914000) [WhatsApp Could Soon Change How You Send Messages](https://www.lifewire.com/whatsapp-scheduled-messages-11912817) [Bixby Update Improves Conversation](https://www.lifewire.com/bixby-update-improves-conversation-11912019) [Parents Should Understand What Facial Age Checks Really Mean](https://www.lifewire.com/biometric-id-rollout-kids-apps-11909555) [Pixel 9 Quick Share Now Works With AirDrop](https://www.lifewire.com/pixel-9-airdrop-support-11908564) - [See All News](https://www.lifewire.com/news-4795879) - WHAT TO BUY - WHAT TO BUY - [Tech Buying Guides](https://www.lifewire.com/tech-buying-guides-8641510) - [Phones & Accessories](https://www.lifewire.com/phone-reviews-4102642) - [Headphones & Speakers](https://www.lifewire.com/audio-reviews-4102649) - [Smart Home](https://www.lifewire.com/smart-home-and-gadget-reviews-4102646) - [Software & Services](https://www.lifewire.com/software-reviews-4102744) - [Home Entertainment](https://www.lifewire.com/home-theater-reviews-4689586) - [Computers & Laptops](https://www.lifewire.com/computer-and-laptop-reviews-4102643) - [Games & Consoles](https://www.lifewire.com/games-console-reviews-4102640) - [Wearables](https://www.lifewire.com/wearable-reviews-4689613) - [Home Networking](https://www.lifewire.com/networking-reviews-4689609) - [Deals and Gifts](https://www.lifewire.com/tech-deals-and-gifts-8629583) - DEALS & GIFTS WE LOVE - [The Best Target Tech Deals](https://www.lifewire.com/tech-deals-and-gifts-8629583) - [Our Favorite Tech Deals at Best Buy](https://www.lifewire.com/amazon-tech-deals-8700021) - [Walmart's Top Tech Deals Right Now](https://www.lifewire.com/amazon-tech-deals-8700021) - [The Best Tech Gifts for Anyone, Anytime](https://www.lifewire.com/tech-deals-and-gifts-8629583) - [The Most Awesome Tech Deals Anywhere](https://www.lifewire.com/amazon-tech-deals-8700021) - [All Tech Deals & Gifts](https://www.lifewire.com/tech-deals-and-gifts-8629583) - COMPUTERS & ACCESSORIES - [The Best UPS Battery Backups](https://www.lifewire.com/best-uninterrupted-power-supplies-4142625) - [Top-rated Mesh Wi-Fi Network Systems](https://www.lifewire.com/best-mesh-wi-fi-network-systems-4139748) - [External Hard Drives We Recommend](https://www.lifewire.com/best-external-hard-drives-4050413) - [Must-Have Ergonomic Keyboards](https://www.lifewire.com/best-ergonomic-keyboards-4147386) - [The Best Vertical Mice This Year](https://www.lifewire.com/best-vertical-mice-6753625) - [All Computers & Accessories](https://www.lifewire.com/computer-and-laptop-reviews-4102643) - PHONES & ACCESSORIES - [Where to Buy Your Next Phone](https://www.lifewire.com/best-places-to-buy-cell-phones-580000) - [The Best Charging Stations This Year](https://www.lifewire.com/best-charging-stations-4155740) - [Most Popular Bluetooth Speakers](https://www.lifewire.com/best-waterproof-bluetooth-speakers-4173025) - [Gotta Have It: Waterproof Phone Cases](https://www.lifewire.com/best-waterproof-phone-cases-4158190) - [Our Fave Portable Keyboards](https://www.lifewire.com/best-wireless-keyboards-for-travel-4177695) - [All Phones & Accessories](https://www.lifewire.com/phone-reviews-4102642) - HOW TO - HOW TO - [Phones](https://www.lifewire.com/mobile-phones-4781509) - [Computers](https://www.lifewire.com/computers-laptops-and-tablets-4781146) - [Smart & Connected Life](https://www.lifewire.com/smart-and-connected-life-4781519) - [Streaming](https://www.lifewire.com/streaming-how-tos-help-and-tips-4781567) - [Gaming](https://www.lifewire.com/gaming-4781445) - [Social Media](https://www.lifewire.com/social-media-4781534) - [Software & Apps](https://www.lifewire.com/software-and-apps-4781541) - [Home Theater](https://www.lifewire.com/home-theater-and-entertainment-4781451) - [Internet & Security](https://www.lifewire.com/internet-networking-and-security-4781467) - [Email & Messaging](https://www.lifewire.com/email-messaging-and-video-calls-4781395) - POPULAR IN PHONES & CONNECTIONS - [iPhone v. Android: Which Is Best For You?](https://www.lifewire.com/iphone-vs-android-best-smartphone-2000309) - [Before You Buy an Unlocked Smartphone](https://www.lifewire.com/before-you-buy-unlocked-phones-577494) - [The Best Apps for Your Phone](https://www.lifewire.com/best-mobile-apps-4157439) - [How to Check Your Data Usage](https://www.lifewire.com/check-mobile-data-usage-4589301) - [How to Create Group Chat Names](https://www.lifewire.com/how-to-create-group-chat-names-4176304) - [All Phone How To’s](https://www.lifewire.com/mobile-phones-4781509) - POPULAR IN COMPUTERS & INTERNET - [5 Things to Do With a New Computer](https://www.lifewire.com/first-things-you-should-do-with-your-new-computer-2625779) - [The Best Ways to Speed Up Your Computer](https://www.lifewire.com/speed-up-your-computer-3506852) - [How to Network a Printer](https://www.lifewire.com/networking-a-printer-817579) - [5 Ways to Back up Your Data](https://www.lifewire.com/ways-to-back-up-your-data-2640426) - [How to Choose a Computer Monitor](https://www.lifewire.com/choosing-a-computer-monitor-5204228) - [All Computer How To’s](https://www.lifewire.com/computers-laptops-and-tablets-4781146) - POPULAR IN STREAMING & ENTERTAINMENT - [Cable vs. Streaming](https://www.lifewire.com/cable-vs-streaming-5082949) - [What to Know Before Buying a Smart TV](https://www.lifewire.com/choosing-a-smart-tv-5204720) - [The Best TV Streaming Services to Try](https://www.lifewire.com/best-tv-streaming-services-for-cord-cutters-5084992) - [Where to Watch Free Movies Online](https://www.lifewire.com/watch-free-movies-online-1356647) - [The Best Free Music Streaming Sites](https://www.lifewire.com/top-places-to-listen-to-free-music-online-1356649) - [All Streaming How To’s](https://www.lifewire.com/streaming-how-tos-help-and-tips-4781567) - FEATURES - SPECIAL TOPICS - [AI & Science](https://www.lifewire.com/artificial-intelligence-and-science-6386405) - [Home Office Central](https://www.lifewire.com/working-from-home-4799956) - [Family Tech Tips](https://www.lifewire.com/family-tech-4800905) - [Women in Gaming](https://www.lifewire.com/women-gaming-5323087) - [Up & Coming Tech Leaders](https://www.lifewire.com/tech-leaders-5323069) - [Eco-friendly Technology](https://www.lifewire.com/eco-5089303) - [Traveling With Tech](https://www.lifewire.com/travel-tech-4781532) - [What to Watch: TV, Movies, & More](https://www.lifewire.com/streaming-tv-movies-4781586) - [Connected Car Tech](https://www.lifewire.com/connected-car-tech-4781520) - [Home Entertainment](https://www.lifewire.com/home-theater-and-entertainment-4781451) - ABOUT US - [About Us](https://www.lifewire.com/about-us-5081224) - [Our Experts](https://www.lifewire.com/experts-5199429) - [Technology Review Board](https://www.lifewire.com/tech-review-board-4783867) - [Product Review Guidelines](https://www.lifewire.com/commerce-guidelines-and-mission-4157971) - [How-To Guideliness](https://www.lifewire.com/how-to-editorial-guidelines-5198846) - [Contact Us](https://www.lifewire.com/about-us-5081224#toc-contact-us) - [![Samsung Galaxy S26 Ultra smartphone with camera array and stylus exposed]() ![Samsung Galaxy S26 Ultra smartphone with camera array and stylus exposed](https://www.lifewire.com/thmb/LCIiQDL_kzH0KdJW6pQzJ0e81rg=/800x533/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/samsung-galaxy-s26-ultra-smartphone-499c19d30f06492e8e1ce68ae08ca078.jpg) 1 Inside the Galaxy S26 Series: AI, Cameras, and Privacy](https://www.lifewire.com/samsung-galaxy-s26-11914313) - [![A robotic lawn mower operating on a grassy area near a paved path]() ![A robotic lawn mower operating on a grassy area near a paved path](https://www.lifewire.com/thmb/uranivha2pWZaxd7mNiyOaiX65U=/800x533/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/grey-smart-lawn-mower-approaching-border-getty-1212803524-e233f0210f30484ab3046cbc328060ed.jpg) 2 What a Smart Lawn Mower Actually Does](https://www.lifewire.com/smart-lawn-mowers-explained-11909433) - [![A lineup of Samsung Galaxy S26 Ultra smartphones showing their camera modules and styluses]() ![A lineup of Samsung Galaxy S26 Ultra smartphones showing their camera modules and styluses](https://www.lifewire.com/thmb/k6suy3DlBzo8gZtn_W-XO30ov0o=/800x533/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/samsung-galaxy-s26-ultra-5eca4675c4e34040a4a71eded5b6df2b.jpg) 3 The Galaxy S26 Ultra Hides Its Best Features in the Background](https://www.lifewire.com/samsung-galaxy-s26-officially-revealed-11914339) - [![A pair of Samsung earbuds in an open case next to a Lifewire recommendation badge for 2026]() ![A pair of Samsung earbuds in an open case next to a Lifewire recommendation badge for 2026](https://www.lifewire.com/thmb/go4QWjO0_qeMc0heqT_ERjHGVFY=/800x533/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/BudsinCaseBadge-78f449b1a66540d9ba6075c9bc63f36e.jpg) 4 At First, the Galaxy Buds4 Pro Felt Predictable. Then I Started Paying Attention](https://www.lifewire.com/samsung-buds4-pro-testing-insights-11913581) - [![Closeup of a smartphone focusing on its camera lenses and side buttons]() ![Closeup of a smartphone focusing on its camera lenses and side buttons](https://www.lifewire.com/thmb/VhNLkJvZdC0avfPnL22T4prd8o0=/800x533/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/samsung-galaxy-s26-closeup-7f23fa1764bb4787a2f12170fe2c1727.jpg) 5 Galaxy S26 Preorders Start Today at Verizon With Up to \$1,100 Off](https://www.lifewire.com/galaxy-preorders-verizon-11914269) - [Software & Apps](https://www.lifewire.com/software-and-apps-4781541) \> - [Windows](https://www.lifewire.com/windows-4781566) \> 79 79 people found this article helpful # Copy Command Explore examples, options, and techniques to effectively use the copy command in different Windows environments By [Tim Fisher](https://www.lifewire.com/tim-fisher-2617714) ![Photo of Tim Fisher, Lifewire GM and Writer]() ![Photo of Tim Fisher, Lifewire GM and Writer](https://www.lifewire.com/thmb/Uhck4bfpAFVwHvQ4_LqL4CLRD-k=/200x200/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/tim-fisher-5820c8345f9b581c0b5a63cf.jpg) [Tim Fisher](https://www.lifewire.com/tim-fisher-2617714) Senior Vice President & Group General Manager, Tech & Sustainability - Emporia State University Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the SVP and General Manager of Lifewire. [lifewire's editorial guidelines](https://www.lifewire.com/about-us-5081224#toc-editorial-guidelines) Updated on August 1, 2025 In This Article View All In This Article - [Copy Command Availability](https://www.lifewire.com/copy-command-2625842#toc-copy-command-availability) - [Syntax and Options](https://www.lifewire.com/copy-command-2625842#toc-copy-command-syntax) - [Examples](https://www.lifewire.com/copy-command-2625842#toc-copy-command-examples) - [Extra: Related Commands](https://www.lifewire.com/copy-command-2625842#toc-copy-related-commands) Close ### The Download - The **copy** command helps you duplicate a file and place it somewhere else on your computer. - You can copy multiple files at once and even rename them using the **copy** command. The [copyCommand Prompt command](https://www.lifewire.com/list-of-command-prompt-commands-4092302) duplicates a file, allowing you to store the copy in a location of your choice. This command lets you copy a file using its specific name and [file extension](https://www.lifewire.com/what-is-a-file-extension-2625879) or employ a wildcard to copy multiple files simultaneously, regardless of file names or extensions. It offers options for verifying successful file copies and suppressing overwrite prompts for files with the same name. ## Copy Command Availability ![Copy command options in Windows 11 Command Prompt]() ![Copy command options in Windows 11 Command Prompt](https://www.lifewire.com/thmb/u_vPSuTBVGKs5pa9znHFwBGVuTU=/1500x0/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/copy-command-help-windows-11-command-prompt-69fcdda61a5449dd98d6c74643e07311.png) Copy Command Options (Windows 11 Command Prompt). The copy command is accessible from the [Command Prompt](https://www.lifewire.com/command-prompt-2625840) in [Windows 11](https://www.lifewire.com/windows-11-5188930), [Windows 10](https://www.lifewire.com/windows-10-2626217), [Windows 8](https://www.lifewire.com/windows-8-2626235), [Windows 7](https://www.lifewire.com/windows-7-2626265), [Windows Vista](https://www.lifewire.com/windows-vista-2626311), and [Windows XP](https://www.lifewire.com/windows-xp-2626354). It's also available in the [Advanced Startup Options](https://www.lifewire.com/advanced-startup-options-2625805) and [System Recovery Options](https://www.lifewire.com/system-recovery-options-2626021) repair/recovery menus. Certain copy command options and [syntax](https://www.lifewire.com/what-is-syntax-2626014) may vary based on the operating system. ## Copy Command Syntax The command follows this general format: **copy** \[**/d**\] \[**/v**\] \[**/n**\] \[**/y** \| **/-y**\] \[**/z**\] \[**/l**\] \[**/a** \| **/b**\] *source* \[**/a** \| **/b**\] \[**\+** *source* \[**/a** \| **/b**\] \[**\+** ...\]\] \[*destination* \[**/a** \| **/b**\]\] \[**/?**\] Refer to [How to Read Command Syntax](https://www.lifewire.com/how-to-read-command-syntax-2618082) if you need help interpreting the copy command syntax outlined above or in the table below. | Copy Command Options | | |---|---| | **Item** | **Explanation** | | **/d** | Allows the destination file to be created decrypted. | | **/v** | Verifies that new files are written correctly. | | **/n** | Uses short file name, if available, when copying a file with a non-8dot3 name. | | **/y** | Suppresses confirmation prompts to overwrite the destination file if it's the same name as the source file. | | **/-y** | Shows confirmation prompts to overwrite a file if the source file name is identical to the destination file name. | | **/z** | Copies [networked](https://www.lifewire.com/what-is-computer-networking-816249) files in restartable mode. | | **/l** | Copies the link to the source instead of the actual file that the source points to. This is only relevant if the source is a symbolic link. | | **/a** | Indicates an ASCII text file. | | **/b** | Indicates a binary file. | | *source* | This is the location and name of the file you want to copy. The *source* may not be a folder, and you may not use wildcard characters (the asterisk). | | *destination* | This is the location and/or file name to which the file specified in the *source* should be copied | | **/?** | Use the [help switch](https://www.lifewire.com/help-switch-2625896) with the copy command to show detailed help about the command's several options. | You can append files by selecting several source files but specifying only one *destination* file. ## Copy Command Examples Here are several examples of how to use the copy command: ### Copy to a Different Folder ``` copy Z:\Software\program.iso C:\Users\Jon\Downloads\Programs\ ``` This example copies *program.iso* from the *Z:* drive to the user's *Programs* folder. Take note of the space between these commands. It's not immediately obvious, but the only spaces in this copy command example are after **copy** and between the source and destination files. ### Copy and Rename ``` copy Y:\install\j93n.exe Y:\more\m1284.msi ``` You can use the copy command to rename a file and change its file extension. In this example, the j93n.exe file is copied to a new folder on the Y: drive as m1284.msi. This isn't a [file conversion](https://www.lifewire.com/free-file-converter-software-and-online-services-2626121) technique (i.e., the [EXE](https://www.lifewire.com/exe-file-2622732) file isn't actually being converted to [MSI](https://www.lifewire.com/msi-file-4142884)). Instead, it's a way to make an identical copy but with the *destination* file saved under a different name and in a different folder. ``` copy D:\i386\atapi.sy_ C:\Windows\atapi.sys ``` In the example above, the *atapi.sy* file, located in the i386 folder on the Windows XP installation CD, is copied to the C:\\Windows directory as atapi.sys. Unlike the Y: drive example, this one is more realistic since copying files from a disc is a common practice when fixing specific Windows problems. ### Copy to Current Path ``` copy D:\readme.htm ``` In this example, the copy command has no specified destination, so the readme.htm file is copied to the directory from which you typed the copy command. For instance, if you type copy d:\\readme.htm from the C:\\Windows\> prompt, the HTM file will be copied to C:\\Windows. ### Copy Only Certain File Types ``` copy /y /v C:\Users\Jon\Downloads\*.mp3 C:\Users\Jon\Music\DownloadedMusic\ ``` This command copies all MP3 files (\*.mp3) from the *Downloads* folder to the *Music\\DownloadedMusic*\\folder. Ensure that every file is copied, even if one with the same name already exists in *DownloadedMusic*, by using the /y switch. Verify the copy with the /v switch to see if the files were successfully copied or if an error occurred during the process. A folder must already exist in the destination location before the copy command can transfer files to it. Create new folders in Command Prompt with the **mkdir** command. ### Merge Files Into One ``` copy Z:\file1.txt+Z:\file2.txt+Z:\file3.txt Z:\combined.txt ``` This command will merge three [TXT](https://www.lifewire.com/txt-text-file-4150707) files into a new file called combined.txt. Each file to be merged should be separated by a plus sign (+) without spaces. You can also use the asterisk to append multiple files. For example, replace individual .txt entries with Z:\\\*.txt to merge every TXT file from the Z: drive into one. ## Copy Related Commands This command is similar to the [xcopy command](https://www.lifewire.com/xcopy-command-2618103), but unlike the copy command, xcopy also works on folders. It's not necessary to use a command if you'd rather [copy a file in Windows using File Explorer](https://www.lifewire.com/how-do-i-copy-a-file-in-windows-2619210). Was this page helpful? Thanks for letting us know\! Get the Latest Tech News Delivered Every Day [Subscribe](https://www.lifewire.com/copy-command-2625842) Tell us why\! Other Not enough details Hard to understand More from Lifewire - [![Zip file format]() ![Zip file format](https://www.lifewire.com/thmb/z5nAxaTAXbQGb_QVGVJhjHEZ52o=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/File-Format-Zip-Label-c778dd481b1c4e6887dc8a5934680869.jpg) How to Unzip Files in Windows 11](https://www.lifewire.com/unzip-files-windows-11-8425832) - [![Software Developer Using Transparent Computer Screen At Office]() ![Software Developer Using Transparent Computer Screen At Office](https://www.lifewire.com/thmb/ucVjU2Dl-lJEL9yEsr1ixSoN3XE=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/software-developer-using-transparent-computer-screen-at-office-746096729-59a2fa80845b340011268cdd.jpg) Net Command](https://www.lifewire.com/net-command-2618094) - [![The More command in a Windows 10 Command Prompt]() ![The More command in a Windows 10 Command Prompt](https://www.lifewire.com/thmb/l88MIYWflOj7nDqtKnQjlQz_nM8=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/more-command-windows-10-5a68bd3b1f4e1300399b0c0a.png) More Command](https://www.lifewire.com/more-command-4041467) - [![DEL command in Windows 10]() ![DEL command in Windows 10](https://www.lifewire.com/thmb/UN5uQLf5CV2xpQH9vYW3q4ruXfg=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/del-command-windows-10-92fd8cc5f79546178401998d50c37a34.png) Del Command](https://www.lifewire.com/delete-command-2625859) - [![rename command example in Windows 11 command prompt]() ![rename command example in Windows 11 command prompt](https://www.lifewire.com/thmb/cZ4brMnBkIQtHkTcjxhv-b8HPY8=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/rename-command-cd8957c87ced4a0cbb6568ccc8f46a02.png) Rename Command](https://www.lifewire.com/rename-command-2625993) - [![Person using the dir command on Windows Command Prompt]() ![Person using the dir command on Windows Command Prompt](https://www.lifewire.com/thmb/RfZHLuCJpNUXq808Ui0cDskd9ZQ=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/dir-command-4050018-eabe1ebb53aa4988b830166ae2e3d350.png) Master the Dir Command in Windows Command Prompt](https://www.lifewire.com/dir-command-4050018) - [![help command in Windows 10 command prompt]() ![help command in Windows 10 command prompt](https://www.lifewire.com/thmb/KQUZM_F-viNFV1fIi4RgJsA8saU=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/help-command-windows-10-5235fec0871648538c84a171a37b33fd.png) Help Command](https://www.lifewire.com/help-command-2618092) - [![Screenshot of the format command in Windows 10 Command Prompt]() ![Screenshot of the format command in Windows 10 Command Prompt](https://www.lifewire.com/thmb/blgxJ93JKaBkSWQL8wrQlGDuNU4=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/format-command-prompt-747f5fb312e84087b7473d6ba9bc42db.png) Format Command](https://www.lifewire.com/format-command-2618091) - [![Psexec ipconfig command in Windows 10 Command Prompt]() ![Psexec ipconfig command in Windows 10 Command Prompt](https://www.lifewire.com/thmb/FZ6Wqpn3BCC8XVT4Ip5YQ8odO00=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/psexec-ipconfig-command-5c6ef8dc46e0fb0001b68174.png) PsExec: What It Is and How to Use It](https://www.lifewire.com/psexec-4587631) - [![Someone using the attrib command on a PC]() ![Someone using the attrib command on a PC](https://www.lifewire.com/thmb/aXOlMrPT6oszodZXzCvRTjjeM9U=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/attrib-command-2625802-6e1354ade59b4b42bfd068641ad6318e.png) Attrib Command (Examples, Options, Switches, and More)](https://www.lifewire.com/attrib-command-2625802) - [![diskpart help command results]() ![diskpart help command results](https://www.lifewire.com/thmb/e9k5rz5Jx_m0r2dQm324Gt2GXXs=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/diskpart-command-help-ad19de56d02d43a6a37c13e1264b80bb.png) Diskpart Command](https://www.lifewire.com/diskpart-command-2625864) - [![Command line interface against a green background]() ![Command line interface against a green background](https://www.lifewire.com/thmb/-QYV1jUyfQke7vOQA-pR6Wq0WUM=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/GettyImages-1447055424-73fc21987ac14625a3495071416ab3c6.jpg) Mastering Directory Changes in CMD: A Step-by-Step Guide](https://www.lifewire.com/change-directories-in-command-prompt-5185508) - [![Graphic image of computer code with bands of blue and purple color]() ![Graphic image of computer code with bands of blue and purple color](https://www.lifewire.com/thmb/Xo-ldzG0UAh8EEM3lo-G6AlHqTo=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/ai-codes-coding-97077-5c30234d46e0fb0001323587.jpg) Expand Command](https://www.lifewire.com/expand-command-2625873) - [![Command Prompt in Windows 11 terminal]() ![Command Prompt in Windows 11 terminal](https://www.lifewire.com/thmb/7fvb55WtKEzCn5i4S8FglKB6eAs=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/terminal-command-prompt-windows-11-5b5ff2747dbe46f985d98b2d60b3ddb2.png) Master Every Command Prompt Command: Comprehensive Windows Guide](https://www.lifewire.com/list-of-command-prompt-commands-4092302) - [![SFC command in Windows 11]() ![SFC command in Windows 11](https://www.lifewire.com/thmb/jc09KWjouhmoxHSgTTe-1vRD_tA=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/sfc-help-command-7a66384d0613497593aa2f429a56e254.png) Sfc Command (System File Checker)](https://www.lifewire.com/sfc-command-system-file-checker-2626020) - [![Vol command in Windows 11]() ![Vol command in Windows 11](https://www.lifewire.com/thmb/2Bu2Fqx5aISlfXcvJjucBXayzYw=/360x240/filters:no_upscale\(\):max_bytes\(150000\):strip_icc\(\)/vol-command-windows-11-terminal-8cd05014e4b94bd5a9592ccd24077d39.png) Vol Command Examples and Options](https://www.lifewire.com/vol-command-2618102) [Lifewire Tech for Humans](https://www.lifewire.com/) Follow Us - [NEWS](https://www.lifewire.com/news-4795879) - [WHAT TO BUY](https://www.lifewire.com/best-products-4781319) - [HOW TO](https://www.lifewire.com/computers-laptops-and-tablets-4781146) - [FEATURES](https://www.lifewire.com/windows-4781566) - [ABOUT US](https://www.lifewire.com/about-us-5081224) - [About Us](https://www.lifewire.com/about-us-5081224) - [Privacy Policy](https://www.people.inc/brands-privacy) - [Editorial Guidelines](https://www.lifewire.com/about-us-5081224#toc-editorial-guidelines) - [Terms of Service](https://www.people.inc/brands-termsofservice) - [Careers](https://www.people.inc/careers) - [Advertise](https://www.people.inc/advertising) - [Contact](https://www.lifewire.com/about-us-5081224#toc-contact-us) Lifewire is part of the [People Inc.](https://www.people.inc/) publishing family. Newsletter Sign Up Newsletter Sign Up
Readable Markdown
### The Download - The **copy** command helps you duplicate a file and place it somewhere else on your computer. - You can copy multiple files at once and even rename them using the **copy** command. The [copyCommand Prompt command](https://www.lifewire.com/list-of-command-prompt-commands-4092302) duplicates a file, allowing you to store the copy in a location of your choice. This command lets you copy a file using its specific name and [file extension](https://www.lifewire.com/what-is-a-file-extension-2625879) or employ a wildcard to copy multiple files simultaneously, regardless of file names or extensions. It offers options for verifying successful file copies and suppressing overwrite prompts for files with the same name. ## Copy Command Availability Copy Command Options (Windows 11 Command Prompt). The copy command is accessible from the [Command Prompt](https://www.lifewire.com/command-prompt-2625840) in [Windows 11](https://www.lifewire.com/windows-11-5188930), [Windows 10](https://www.lifewire.com/windows-10-2626217), [Windows 8](https://www.lifewire.com/windows-8-2626235), [Windows 7](https://www.lifewire.com/windows-7-2626265), [Windows Vista](https://www.lifewire.com/windows-vista-2626311), and [Windows XP](https://www.lifewire.com/windows-xp-2626354). It's also available in the [Advanced Startup Options](https://www.lifewire.com/advanced-startup-options-2625805) and [System Recovery Options](https://www.lifewire.com/system-recovery-options-2626021) repair/recovery menus. Certain copy command options and [syntax](https://www.lifewire.com/what-is-syntax-2626014) may vary based on the operating system. ## Copy Command Syntax The command follows this general format: **copy** \[**/d**\] \[**/v**\] \[**/n**\] \[**/y** \| **/-y**\] \[**/z**\] \[**/l**\] \[**/a** \| **/b**\] *source* \[**/a** \| **/b**\] \[**\+** *source* \[**/a** \| **/b**\] \[**\+** ...\]\] \[*destination* \[**/a** \| **/b**\]\] \[**/?**\] | Copy Command Options | | |---|---| | **Item** | **Explanation** | | **/d** | Allows the destination file to be created decrypted. | | **/v** | Verifies that new files are written correctly. | | **/n** | Uses short file name, if available, when copying a file with a non-8dot3 name. | | **/y** | Suppresses confirmation prompts to overwrite the destination file if it's the same name as the source file. | | **/-y** | Shows confirmation prompts to overwrite a file if the source file name is identical to the destination file name. | | **/z** | Copies [networked](https://www.lifewire.com/what-is-computer-networking-816249) files in restartable mode. | | **/l** | Copies the link to the source instead of the actual file that the source points to. This is only relevant if the source is a symbolic link. | | **/a** | Indicates an ASCII text file. | | **/b** | Indicates a binary file. | | *source* | This is the location and name of the file you want to copy. The *source* may not be a folder, and you may not use wildcard characters (the asterisk). | | *destination* | This is the location and/or file name to which the file specified in the *source* should be copied | | **/?** | Use the [help switch](https://www.lifewire.com/help-switch-2625896) with the copy command to show detailed help about the command's several options. | You can append files by selecting several source files but specifying only one *destination* file. ## Copy Command Examples Here are several examples of how to use the copy command: ### Copy to a Different Folder ``` copy Z:\Software\program.iso C:\Users\Jon\Downloads\Programs\ ``` This example copies *program.iso* from the *Z:* drive to the user's *Programs* folder. Take note of the space between these commands. It's not immediately obvious, but the only spaces in this copy command example are after **copy** and between the source and destination files. ### Copy and Rename ``` copy Y:\install\j93n.exe Y:\more\m1284.msi ``` You can use the copy command to rename a file and change its file extension. In this example, the j93n.exe file is copied to a new folder on the Y: drive as m1284.msi. This isn't a [file conversion](https://www.lifewire.com/free-file-converter-software-and-online-services-2626121) technique (i.e., the [EXE](https://www.lifewire.com/exe-file-2622732) file isn't actually being converted to [MSI](https://www.lifewire.com/msi-file-4142884)). Instead, it's a way to make an identical copy but with the *destination* file saved under a different name and in a different folder. ``` copy D:\i386\atapi.sy_ C:\Windows\atapi.sys ``` In the example above, the *atapi.sy* file, located in the i386 folder on the Windows XP installation CD, is copied to the C:\\Windows directory as atapi.sys. Unlike the Y: drive example, this one is more realistic since copying files from a disc is a common practice when fixing specific Windows problems. ### Copy to Current Path ``` copy D:\readme.htm ``` In this example, the copy command has no specified destination, so the readme.htm file is copied to the directory from which you typed the copy command. For instance, if you type copy d:\\readme.htm from the C:\\Windows\> prompt, the HTM file will be copied to C:\\Windows. ### Copy Only Certain File Types ``` copy /y /v C:\Users\Jon\Downloads\*.mp3 C:\Users\Jon\Music\DownloadedMusic\ ``` This command copies all MP3 files (\*.mp3) from the *Downloads* folder to the *Music\\DownloadedMusic*\\folder. Ensure that every file is copied, even if one with the same name already exists in *DownloadedMusic*, by using the /y switch. Verify the copy with the /v switch to see if the files were successfully copied or if an error occurred during the process. A folder must already exist in the destination location before the copy command can transfer files to it. Create new folders in Command Prompt with the **mkdir** command. ### Merge Files Into One ``` copy Z:\file1.txt+Z:\file2.txt+Z:\file3.txt Z:\combined.txt ``` This command will merge three [TXT](https://www.lifewire.com/txt-text-file-4150707) files into a new file called combined.txt. Each file to be merged should be separated by a plus sign (+) without spaces. You can also use the asterisk to append multiple files. For example, replace individual .txt entries with Z:\\\*.txt to merge every TXT file from the Z: drive into one. ## Copy Related Commands This command is similar to the [xcopy command](https://www.lifewire.com/xcopy-command-2618103), but unlike the copy command, xcopy also works on folders. It's not necessary to use a command if you'd rather [copy a file in Windows using File Explorer](https://www.lifewire.com/how-do-i-copy-a-file-in-windows-2619210). Was this page helpful? Thanks for letting us know\! Get the Latest Tech News Delivered Every Day [Subscribe](https://www.lifewire.com/copy-command-2625842) Tell us why\!
Shard189 (laksa)
Root Hash14090157370174344989
Unparsed URLcom,lifewire!www,/copy-command-2625842 s443