metinsaylan
metinsaylan
As an Amazon Associate, I earn from qualifying purchases.
  1. Home
  2. How To
  3. Snippets

Move Files to Another Folder Using CMD

Staff // (Updated: )

You can do a lot of things faster and easier using dos commands and batch files in Windows. If you want to move all files from a directory to another with subfolders, "robocopy" command is the easiest way to do it. To do this, you can use the following code:

robocopy C:\BaseDirectory D:\TargetDirectory *.* /E /XD D:\TargetDirectory /move

robocopy is included on windows7 and later systems by default. If you don’t have robocopy on your system, you can try using xcopy command too.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More How To
Share Share Tweet