View Single Post
  #4  
Old October 14th 20, 05:23 PM posted to microsoft.public.windowsxp.help_and_support
Ivan Denisovich
external usenet poster
 
Posts: 16
Default Task time duration

On Wednesday, September 16, 2020 at 3:48:04 PM UTC-5, Barry Schwarz wrote:
On Wed, 16 Sep 2020 12:06:50 -0700 (PDT),
wrote:
I am running a Robocopy task using a a script in a .bat file. What command lines would I have to incorporate into the script that will post somewhere (i.e. a text file) the start and ending time of the task so its duration can be ascertained? This does not seem possible directly from Robocopy itself, despite its multitude of switches.

All suggestions appreciated.

Before calling Robocopy: time /T filename.txt

After Robocopy returns: time /T samefilename.txt

--
Remove del for email

Many thanks for your help
Ads