Advertisement
Guest User

Estimate duration of "dir c:\windows\system32 /s" command

a guest
Jan 1st, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. set t1=%time%
  2. echo Started at %t1%
  3. dir "%windir%\system32" /s
  4. set t2=%time%
  5. set /A dt=(%t2:~6,2%-%t1:~6,2%)+(60*(%t2:~3,2%-%t1:~3,2%))+(3600*(%t2:~0,2%-%t1:~0,2%)) > nul
  6. echo Started at %t1%, finished at %t2%
  7. echo Duration %dt% seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement