Friday, January 20, 2017

Robocopy FTW

recently i having issues to copy files to remote location where the network is slow.

It keep fails midway. i found a pretty need solution provided by MS in every PC. Below are the syntax i wrote in the cmd

Robocopy "C:\UserFolder" "C:\FolderBackup" /e /Z /log+: logcopy.txt
 
first syntax is source address
second is destination
/e is for copy all contents including empty directories of SourceFolder to DestinationFolder:
/Z is to re-do/continue on error/network fails 
last one is log location.