How to backup files and folders with Command Prompt in Windows [Guide]

Whilst you can back up your folders in Windows with third-party software, the Command Prompt also has backup options. Robocopy is a backup option that you can use from the Command Prompt. With it you can back up one folder to another destination. This guide shows you how, read on to learn more.

To open the Command Prompt, enter cmd in the Start menu search box. Or you can open it from Run by pressing the Windows key + R and then enter cmd in Run window to open the Command Prompt shown below.

robocopy3

Now you should enter robocopy (or xcopy if you have Windows XP) followed by the source folder (the folder your backing up) and the destination for it. For example, the command would be as follows: robocopy “C:\Source\Folder” “C:\Backup\Folder.” Of course, you should enter the exact paths for both the source and the backup folder as in the shot below. (Keep in back, the backup destination folder can be located on any drive — internal, external, USB, etc.)

robocopy2

Then press Enter to back up the folder to the destination. The Command Prompt will then show you some backup details as in the shot below. There it shows the files in the source folder that you backed up.

robocopy

Open Windows Explorer and locate the destination folder. You should now find that it includes all the files from the source folder. As such, the Command Prompt’s Robocopy is an effective option that you can back up your folders with if you don’t already have backup utility software.

Related Posts

  • Vanessa

    You can actually try using “Cloudbacko home” software i am basically using this software from long time and really satisfied using this software. If you want i am leaving a link below just check: http://www.cloudbacko.com/free-backup.jsp

  • rossy

    Nice sharing, very useful information. In fact, I didn’t konw how to use it till I saw this. I myself tend to use backup software. They are much eaiser to manage. Personally I am using, AOMEI Backupper Standard. It is completely free for your file/system/disk/partition easy backup:http://www.backup-utility.com/system-backup-software.html. I have used it for a long time, it deserves a trying.?

  • rossy

    Nice sharing, very useful information. In fact, I didn’t konw how to use it till I saw this. I myself tend to use backup software. They are much eaiser to manage. Personally I am using, AOMEI Backupper Standard. It is completely free for your system/HDD/SSD easy backup:http://www.backup-utility.com/system-backup-software.html. I have used it for a long time, it deserves a trying.?

  • md. wahidul haque

    I recomended u to try “Long Path Tool” program .before I have problem like this. and after I found long path tool and now my problem solved

  • GF

    Hi all.

    I have Windows XP and I have used Xcopy to do backups from C: to E: (with option /M to copy files having archive attribute only) and I often met a drawback: sometimes Xcopy didn’t copy all the files it had to copy. Some files were unheeded.
    The missed files were not blocked, they were inactive and isolated, they were not running programs and they didn’t belong to running programs.
    However if I started Xcopy again, now it copied even the missed files.
    Therefore to get a complete copy I had to start Xcopy twice.

    I wonder if someone else meets/met this same drawback.

    (Note: now I use Xxcopy and everything seems fine)