Skip to content
OnMSFT.com
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
Menu
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
  1. Home
  2. How-to
  3. How to copy files in Windows 10 or Windows 11 using Command prompt (Cmd) – onmsft.com

How to copy files in Windows 10 or Windows 11 using Command prompt (Cmd) – onmsft.com

kip@onmsft.com kip@onmsft.com
May 13, 2022
2 min read

Copying your files doesn’t have to be troublesome. But, if you’re a Cmd poweruser, you probably don’t like to deal with your PC with your mouse—you know, the usual GUI way. Thankfully, there’s a way out. You can also use the Command prompt for copying your files in Windows 10 or Windows 11. Here’s how.

How to copy your Windows files using Cmd

You can copy your files with Command prompt through different commands. Here’s how you can get started. Go to the Start menu search bar, type in ‘cmd,’ and select the best match. In the Command prompt, first move to the directory where you’ve saved your files. Once you’re in the directory, type in the following command and hit Enter:

copy myfile.txt c:\my\location

Here, copy is the command for copying your file, “myfile.txt” is the file that you want to copy, followed by “d:\my\location,” which denotes the place you would like to paste your files to.

Copying multiple files at a single go

If you’ve got a large number of files, however, then copying them one at a time is not really an attractive proposition—moving them at a single go is what you’re looking for instead.

You can rely on the xcopy command for this, and move around multiple directories at a single go. To run the xcopy command, enter the following syntax in the Cmd:

xcopy *.* /h NewFolder

In the example above, the Xcopy command copies all the files, including the hidden ones, from the current directory into the new directory.

Copying files in Windows 10 or Windows 11 using Command prompt

So now that you’ve successfully copied all your Windows files using Cmd, don’t forget to give other features of Command prompt a try.

Share This Post:

Share this article:
Tags:
cmd Windows 10 Windows 10 Howto Windows 11 Windows 11 How To
Previous Article Here is next week’s lineup for Xbox game releases – onmsft.com Next Article Microsoft celebrates the new Top Gun movie with custom Xbox and Microsoft Flight Sim DLC – onmsft.com

Related Articles

How to Fix the Phone Link App Not Working on Windows 11 – onmsft.com

December 29, 2022

5 easy ways to make desktop shortcuts on Windows 11 – onmsft.com

December 29, 2022

How to customize precision touchpads on Windows – onmsft.com

December 22, 2022

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Elon Musk Plans to Reveal World’s Largest Chip Fab Project Next Week
  • Meta considers major layoffs while pouring billions into AI
  • MacBook Neo Looks Impressive Until You See the 8GB RAM
  • Instagram Will Stop Supporting Encrypted DMs Starting May 2026
  • Chrome tests Gemini Live voice assistant in a floating overlay panel

Recent Comments

No comments to show.
OnMSFT.com

The Tech News Site

Categories

  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Gaming
  • Edge
  • Teams

Recent Posts

  • Elon Musk Plans to Reveal World’s Largest Chip Fab Project Next Week
  • Meta considers major layoffs while pouring billions into AI
  • MacBook Neo Looks Impressive Until You See the 8GB RAM
  • Instagram Will Stop Supporting Encrypted DMs Starting May 2026
  • Chrome tests Gemini Live voice assistant in a floating overlay panel

Quick Links

  • About OnMSFT.com
  • Contact OnMSFT
  • Join Our Team
  • Privacy Policy
© 2010–2026 OnMSFT.com LLC. All rights reserved.
About OnMSFT.comContact OnMSFTPrivacy Policy