Backup Folders and Sub-folders through Xcopy Command?

Looking for a way to copy files from CDROM to your hard drive? How about trying the Xcopy command to copy folders and sub-folders? If you do not know how to use it, read here.

Wondershare Recoverit Authors

Apr 20, 2022 • Filed to: Take Data Backup • Proven solutions

There are many important files, and I want to copy folders and subfolders to some other location. Can someone guide me on how to copy the directory structure of all the files?

Directory structures are tedious, and any wrong click can cause an error in copying them. But Xcopy command to copy folders and sub-folders can make the process simpler. If you are not well-versed about its usage, then this is the article for you.

We will guide here about the Xcopy command, how to use Xcopy to backup files. Read on to learn about it.

Knowledge about Xcopy Command

The in-built command of Windows OS comes with more advanced features than the simple “copy” command. Its features include:

Now in the next section, let us see how to use the Xcopy command.

How to Copy Files and Folders through Xcopy Command?

Let’s move on to see how to use the Xcopy command to copy folders and sub-folders. Here are the steps for you:

Step 1: Click on “Start” and type CMD in the system’s search box. Now right-click on the CMD and run it as an administrator.

Step 2: Type “Xcopy” in the CMD to copy folders and subfolders. One of the Xcopy command examples is

Xcopy C:\*** D:\*** /E /H /C /I

Here *** is the folder name

xcopy command

Remember if your file name is more than 8 characters, using quotation marks on the path is advisable. It will prevent the occurance of any error.

You have learned how to use Xcopy cmd. But if you wish to take a backup of your files, we recommend using UBackit.

How to Backup Folders and Sub-Folders through Wondershare UBackit?

Wondershare UBackit is an excellent tool to backup folders and sub-folders. This user-friendly interface will help in automatic backup and also give intelligent notifications. You can use this tool easily to schedule backups.

Step 1: Select the folders and files

Launch the Wondershare UBackit on your system and go to “Backup and Restore.” Then tap on “Start.” and select the files, folders that you need to backup. If you wish to look for any specific folder, you can do it through the search option.

backup source

Step 2: Select backup destination

Now save the backup at the required location. You can select from any of the internal or external drives which is connected to the system.

backup destination

Step 3: Set automatic backup

Depending on your requirement, you can set backup for daily, monthly, weekly, and non-stop. This is not mandatory, and you can even backup without any schedule.

backup schedule

Step 4: Backup Starts

See the progress on the on-screen, and when the backup completes, the tool will notify you. You can later restore it when you feel the need.

backup comppetes


Xcopy is the best in-built command to copy files and folders with directories. In the absence of it, copying files can lead to errors. Above, we have discussed everything about Xcopy and its usage. Moreover, if you would like to take a backup, then we recommend taking it with the Wondershare UBackit.

Other popular Articles From Wondershare

Recoverit author

Amy Dennis

staff Editor

Home > Resources > Take Data Backup > How to Backup Folders and Sub-folders through Xcopy Command?