Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Create a file named with the current timestamp
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
set timestr=%d:~6,4%_%d:~0,2%_%d:~3,2%
echo %timestr%
set FILENAME=%timestr%.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.