Programming + ScriptingBatch Files Tips - Batch File Hints and Snippets Updated November 16 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

Copy to Clipboard 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: 3.146.107.144     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