Programming + ScriptingBatch Files Backup with Robocopy - Template Updated August 11 2024
Copy to Clipboard @echo off for /f %%i in ('powershell ^(get-date^).DayOfWeek') do set dow=%%i echo %dow% rem The above now has the day like "Tuesday" or "Friday" set as an environment variable robocopy /mir /r:0 /DCOPY:T /xj c:\ "h:\Backups\Daily\%dow%"




©2024 - Some portions of this website are Copyrighted.
Your IP: 3.133.136.137     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