Moving entire folder and all its contents to another folder

user3108250 picture user3108250 · Dec 16, 2013 · Viewed 65.2k times · Source

Just need a batch script that will move one folder and all its contents into another folder.

Essentially this

C:\Folder1 to C:\Folder2\Folder 1

Answer

mihai_mandis picture mihai_mandis · Dec 16, 2013

You can use windows native command:

MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2

You can use move /? call for more details.

So, in you case , the command would be:

move C:\Folder1 C:\Folder2\

If Folder2 doesn't exist, Folder1 will be renamed Folder2.