• Hi there and welcome to PC Help Forum (PCHF), a more effective way to get the Tech Support you need!
    We have Experts in all areas of Tech, including Malware Removal, Crash Fixing and BSOD's , Microsoft Windows, Computer DIY and PC Hardware, Networking, Gaming, Tablets and iPads, General and Specific Software Support and so much more.

    Why not Click Here To Sign Up and start enjoying great FREE Tech Support.

    This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Alternating device by month

Status
Not open for further replies.
i wrote this years ago for my backups.

for /f %%a in ('wmic os get localdatetime ^| find "."') do set dte=%%a
set mth=%dte:~4,2%
for %%a in (01 05 09) do if "%mth%"=="%%a" set job=1
for %%a in (02 06 10) do if "%mth%"=="%%a" set job=2
for %%a in (03 07 11) do if "%mth%"=="%%a" set job=3
for %%a in (04 08 12) do if "%mth%"=="%%a" set job=4

echo Month is %mth%
echo Backup Set is %job%

put it in a .bat file, and with a little modification, you should be good.
 
Status
Not open for further replies.