By Lily / Last update November 30, 2021

Benefit from Command Prompt Copy Files

Copying files with command line has some advantages comparing to traditional way of files copying. For example, it saves the time of manually copy and paste. Also, it supports unattended task while copying. That is to say, you can leave the computer alone and take a break after inputting some certain commands. The task will run automatically.

Unlike some sorts of data backup with CMD, it is a little bit of fiddly to copy each file manually, especially when these files are stored in different locations. If they are placed in one same partition or volume, it would be more convenient to backup entire partition.

Anyway, you may have other reasons to do files copy in Command Prompt. However, the most important thing is to figure out how to perform.

2 Solutions to Copy Files Using Command Prompt in Windows 7

Two methods on how to copy and paste files using CMD for different purposes will be introduced below. Choose the one that suits you most.

Copy Specific File via “Copy” Command

1. Press Windows + R key combination (or click Start) to start Run.

2. Type cmd and hit OK in the box to launch Command Prompt.

3. At the prompt, type copy c:\workfile.txt d: and press Enter to copy the file named “workfile.txt” on the root of C drive to D drive root.

Copy Files Using Command Prompt Windows 7


  • To copy some certain file extensions from one drive to another, you can run, for example, copy *.txt d: to copy all texts to D drive at a time.

  • This method also applies to copying files using Command Prompt in Windows 10.

Copy Directory and Contents Using “XCopy” Command

It would be better to copy folders with the help of XCopy command in this method.

1. Open a Command Prompt as instructed.

2. Input xcopy c:\workfile d:\test and press Enter to copy a directory and contents in “workfile” to “test”.


  • To copy a directory with a space in the name, you need to surround it with quotes. For example, type xcopy c:\workfile “d:\test new”.
  • By default, the basic XCopy command only copies files in the directory you specify as the source directory. You must use the /E option to copy subdirectories within the source directory as well.

Easier Way to Copy Files in Windows 7/8/10/11

With covered two methods, it is quite easy to copy files in Windows 7 with command line. Nevertheless, those methods are convenient for some special groups of Windows users who are familiar with command line operations. For the majority of users, that is a little complex. In addition, the XCopy command refuses to work sometimes. That’s why so many people looking for XCopy alternative on the Internet.

Is there a simpler way to copy files from one location to another in Windows 7? Apparently, the answer is positive. AOMEI Backupper Professional is reliable file sync software that designs for all Windows PC OSes.

Multiple sync modes: it allows you to do Basic Sync (One-Way Sync), Two-Way Sync, Mirror Sync and Real-Time Sync based on your needs.
Automatic sync: you are able to sync files/folders in Daily, Weekly, Monthly, Event-trigger and USB plug in mode.
Various sync locations: you are allowed to copy files between various locations, such as sync local folders to external hard drive, USB flash drive, NAS device and cloud drive, etc.

For advanced users, the software also provides the way to backup hard disk, system drive, and partition/volume in Command Prompt. You can also do system restore from Command Prompt when the need ever arises in the future. Except for that, command line clone hard drive, partition, or system drive is also available.

How to Copy Files/Folders in Windows 7 Step by Step

1. Download AOMEI Backupper, install and start it. Connect the external storage to your Windows 7 if necessary.

Download Free Trial Win 11/10/8.1/8/7/XP
Secure Download

2. Click Sync and select Basic Sync.

File Sync

3. Edit the task name if you want to. Then, choose the files or folders you’d like to copy by clicking Add Folder. You can add multiple folders to synchronize them at a time.

Add Folder

4. Choose the destination path you’d like to copy to. You are allowed to copy files to OneDrive.

Add Sync Destination

5. Click Start Sync to execute the task.


  • Options: comment the task and set email notification here. If you are running a file backup task, you’ll be able to encrypt backup image, split image and compress image in this option.

  • Schedule: choose synchronization schedule type from Daily, Weekly, Monthly, Event triggers and USB plug in here. The program will run the missed task at the next system startup by default if you set up a scheduled task.

Schedule Settings General


Two available ways on how to copy files using Command Prompt in Windows 7 are presented in this article. Choose the most helpful one based on your situation. What’s more, another way on how to easily copy files in Windows 7/8/10/11 is also discussed. You are able to move hard drive to new computer in Windows 7 with the comprehensive backup software - AOMEI Backupper.

If you want to protect unlimited computers within your company, you can pick AOMEI Backupper Technician. With the inbuilt AOMEI Image Deploy tool, you are also allowed to deploy/restore system image file on server-side computer to multiple client-side computers over network.