So I needed to copy a lot of user files and directory's from a network drive to an external USB drive. I wanted to maintain the folder structure but exclude a common folder name populated throughout the structure called "Application Data". A few file names/paths exceeded the maximum character allowance for NTFS, so i wanted to skip these and continue when encountered. The command which worked was as follows:
Robocopy "source" "destination" *.* /E /R:1 /XD "Application Data"
/E (copy sub directory's, including empty ones)
/R:1 (retry failed copy's once - then continue)
/XD (exclude specified directory)
Doh!!!!!!!!!!!! just found a GUI version of Robocopy:
http://technet.microsoft.com/en-gb/magazine/cc160891.aspx
If you use the GUI it completes almost instantly, this is misleading as it is still running the command hidden - so don't switch off/reboot. If you fire up Task Manager you will see ROBOCOPY.EXE actively running - BEWARE!
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment