
兩個bat文件合并為一個批處理怎么合
- @echo off
- echo.
- set w=e:移除.bat
- set spath=e:外勤
- set bakpath=d:備份外勤
- set /a y=%date:~,4%,m=1%date:~5,2%-2
- if %m% lss 101 set /a y-=1,m+=12
- if exist %spath%%y%%m:~-2% (
- call %w%
- ) else echo %y%年%m%

