Published
- 1 min read
robocopy get bytes written
The solution for this is noted below
robocopy get bytes written
Solution
$SourceFolder = C:\Source
$DestFolder = D:\Destination
$output = robocopy $SourceFolder $DestFolder /mir /l /bytes /nc /nfl /ndl /np /tee /Z /e /xx /njh | select-string -pattern "Bytes : "
$output = $output -replace '\D+([0-9]*).*','$1'
Try other methods by searching on the site. That is if this doesn’t work