Code: Select all
@ECHO Off
set ff=%date:~10%
set aa=%date:~3,5%
if %date:~3,5%==01 set /a ff=%date:~6%-1
set /a "bb=1%aa%-101"
if %bb%==1 set bb=01
if %bb%==2 set bb=02
if %bb%==3 set bb=03
if %bb%==4 set bb=04
if %bb%==5 set bb=05
if %bb%==6 set bb=06
if %bb%==7 set bb=07
if %bb%==8 set bb=08
if %bb%==9 set bb=09
if %bb%==0 set bb=12
echo %ff%%bb%
Call "OriginalPath1.bat" LIVE YYYYMM
Call "OriginalPath.bat"
Echo The update completed successfully!
exit
Thank you for your help in advance.