Hey all, im working on a batch file (for the hell of it) to copy a file and rename the copies with the current time hh:mm:ss
I found this, but it does not include seconds.
for /f "tokens=1" %%u in ('time /t') do set t=%%u
if "%t:~1,1%"==":" set t=0%t%
set timestr=%t:~0,2%%t:~3,2%
I haven't been able to figure out how to get the seconds to display.
The files are currently named as HHMM.ext I would like HHMMSS.ext
TIA