GuideProgramming + ScriptingBatch Files Tips - Batch File Hints and Snippets Updated August 11 2024
Lots of Date Batch File examples are on this page:
https://www.robvanderwoude.com/datetime.php
More pages are available too:
https://www.robvanderwoude.com/bht.php


rem Set the date in the format "2020-10-24" to the variable %Today%
FOR %%A IN (%Date%) DO (
FOR /F "tokens=1-3 delims=/-" %%B in ("%%~A") DO (
SET Today=%%D-%%B-%%C
)
)
echo Date to use for filenames: '%Today%'




©2024 - Some portions of this website are Copyrighted.
Your IP: 18.226.200.38     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy