Here, thisMiniToolpost will show you how to move folders and subfolders using CMD.
Do you know what kind of command lines can be used to move folders?
you’re able to keep reading and work with this tutorial to move folders and subfolders using CMD.
![]()
How to move files from subfolders to the main folder?
It is a piece of cake when you work with this tutorial.
it’s possible for you to try this command with the following steps.

Step 1: PressWin + Rto kick off the Run window.
Step 2: Typecmdinto the text box and hitEnterto open Command Prompt.
Step 3: Typemove [] []and hitEnter.

Then, I need to typemove E:\fortest*.
- D:\RecoveryDestination.*.
*tells the computer that every file in this folder should be moved regardless of its extension.
![]()
Here Ill introduce you to how to move multiple folders in CMD with this robocopy command.
Step 1: TypeCommand Promptin the Windows Search bar.
Step 2: Right-choose the best-matched option and chooseRun as administrator.

Step 3: Typerobocopy /moveand hitEnter.
like note that after running this command, your file will be deleted from the original path.
it’s possible for you to also run therobocopy /mirto mirror the directory and files to another place.
![]()
However, this command will overwrite all files in the destination folder.
You shouldrecover filesquickly to avoid data overwriting, leading to data being irrecoverable.
This post puts forward 2 methods to get them back.
Way 3: Move Folders and subfolders Using the Xcopy Command
The full name ofXcopyis Extended Copy.
you might run this command to copy multiple files and entire directories to another place.
Compared with the robocopy command, it is easier with fewer options.
Additionally, this command line doesnt remove the original folder after copying.
Step 1: initiate the Command Prompt in the way you like.
Step 2: throw in the commandXcopy [] /E /H /C /I.
/Erefers to copying all subfolders, including empty folders.
/Hrefers to copying hidden files and system files.
/Crefers to continuing the copy process notwithstanding the occurrence of errors.
/Irefers to assuming a new directory if the destination is wrong or doesnt exist.
Both Xcopy and Robocopy are very useful when you gotta transfer files.
This article will provide you with detailed information about Xcopy vs Robocopy.
Bottom Line
This is all about how to move folders and subfolders using CMD.
you might try the above three move folder command lines following the steps.
c’mon note that the former two command lines will remove the original folder after executing the operation.
You should be careful when using these command lines.