1.

Solve : How to move a full folder??

Answer»

So, i have a big folder with other folders and files inside it.
Whats the Batch command to move it to another location?I would do this, but there may be a better way. As far as I know the move command doesn't work for a directory tree.

Code: [Select]XCOPY "[source folder here]" "[destination folder]" /E /C /R /I /K /Y
RD "[source folder]"
MOVING large Trees with DOS is not a very GOOD idea.
The likelihood of error is rather high.
Files may be in use or marked as read-only which will cause errors.

First copy, then if no errors, remove original files and folders. Better yet, use a program made to do this kind of work. Windows has a application CALL 'Sync Toy' that could be used.

Quote

SyncToy 2.1
Brief Description
SyncToy 2.1 is a free application that synchronizes files and folders between locations. Typical uses include sharing files, such as photos, with other computers and CREATING backup copies of files and folders

Quote
Files may be in use or marked as read-only which will cause errors.

The /E /C /R /I /K /Y should take care of that. As for the being in use, it would behave the same way in GUI, right?Quote from: Linux711 on April 30, 2011, 02:03:36 PM
The /E /C /R /I /K /Y should take care of that. As for the being in use, it would behave the same way in GUI, right?
No. It depends. But you can use Robocopy
Quote
While still included in Windows Vista, Xcopy has been deprecated in favor of Robocopy, a much more powerful copy tool, which is now built into the operating system.
http://en.wikipedia.org/wiki/Robocopy


Discussion

No Comment Found