I have a batch file that looks like this:
@echo off set StartTime=%TIME% for /f "usebackq tokens=1-4 delims=:., " %%f in (`echo %StartTIME: =0%`) do