本帖最后由 ping192168101 于 2015-12-2 21:02 编辑
回复 4# 回家路上 - @echo off
-
- rem ****log backup****
-
- if NOT EXIST %num% md %cd%\%num%
-
- rem ********
-
- Set k1=%Date:~0,4%%Date:~5,2%%Date:~8,2%
- set k2=%date:~0,4%-%date:~5,2%
-
- set /a "y=%date:~0,4%,m=1%date:~5,2%-100,d=1%date:~8,2%-100"
-
- rem ********
- if NOT EXIST %num%\%k2% md %cd%\%num%\%k2%&&md %cd%\%num%\%k2%\sy
-
-
- rem ********
- cd %cd%\
-
- rem ********
-
-
- dumpel -l system -f %cd%\%num%\%k2%\sy\%k1%.txt
-
- type %cd%\%num%\%k2%\sy\%k1%.txt|find "%m%/%d%/%y%" >%cd%\%num%\%k2%\sy\file
-
- del %cd%\%num%\%k2%\sy\%k1%.txt
-
- rename %cd%\%num%\%k2%\sy\file %k1%.txt
- pause
复制代码 在执行这条时
del %cd%\%num%\%k2%\sy\%k1%.txt
提示找不到路径。没看出来问题在哪里?28,30行都执行不了 |