batch move everything under folder

Custom / N/A
February 21, 2009 at 10:13:15
Specs: win xp, 1024
I want to know are there anyway to use the 'move' command to move everything under folder

for example, currently i am using this command, however, this command only move files but not sub folder under c:\temp.
move c:\temp\*.* d:\temp\

so can anyone help me?

See More: batch move everything under folder

Report •

February 21, 2009 at 12:05:41

Move won't do this when moving files to another drive. you'll have to copy the files to the new drive and then remove them from the old one.

xcopy c:\temp\*.* d:\temp\*.* /s /v /i /h /k /y copies the temp folder and its contents to the d: drive.

rd c:\temp /s /q removes the temp folder and all contents from the c: drive.

Be careful with the "rd" command. When used like this it will remove the c:\temp directory and all files/folders in it. For example, if you get careless and type "rd c:\ /s /q", you will erase everything on your C: drive.

Report •
Related Solutions

Ask Question