Advertisement
Deerenaros

copy folder with counting time

May 30th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for ($t=1; $t -le 20; $t++) {
  2.     $elapsed = [System.Diagnostics.Stopwatch]::StartNew()
  3.     cp c:/test1/ c:/test2 -Recurse
  4.     echo $($elapsed.Elapsed.ToString()) >> times.txt
  5.     rm c:/test2 -r -Force
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement