Thanks, the script now displays the time-duration/length (hh:mm:ss) in Windows 7.
I have 2 more questions regarding this script, but I will post the 2nd one separately.
Question #1 How can I configure the script to use the windows code page 1252 in the report log?
File names that use accented characters do NOT display correctly: Posse?der - Pre?fe?rer - Re?pe?ter – Ce?le?brer.mp3
I have the same issue when running the DOS dir cmd which uses the ANSI code page by default.
I have to specify in the batch file for the dir cmd to use the code page 1252 (that somehow tells the DOS dir cmd to use the code page 1252 when displaying file names, which BTW does NOT change any system settings).
It appears that Powershell also uses the ANSI code page by default.
Thanks, Tracey
Windows7 Powershell 5.1