本帖最后由 ygqiang 于 2011-6-8 19:24 编辑
u盘1备份代码:- set PWD=%~sdp0
- for %%a in (d e f g h i j k) do (
- if exist "%%a:\0beifen\udisk" 00-00robocopy %PWD% "%%a:\0beifen\udisk\sd4g" /mir
- if exist "%%a:\0beifen\udisk" del /f /q "%%a:\0beifen\udisk\sd4g\00-00copy-c.BAT"
- if exist "%%a:\0beifen\udisk" del /f /q "%%a:\0beifen\udisk\sd4g\00-00robocopy.exe"
- if exist "%%a:\0beifen\udisk" del /f /q "%%a:\0beifen\udisk\sd4g\00-00robocopy.rar"
- if exist "%%a:\0beifen\udisk" 00-00robocopy "%%a:\0beifen\udisk\sd4g\u-2G" "%%a:\0beifen\udisk\u4g\u-2G" /mir
-
- )
-
- exit
复制代码 u盘2备份代码:- set PWD=%~sdp0
- for %%a in (d e f g h i j k) do (
- if exist "%%a:\0beifen\udisk" 00-00robocopy %PWD% "%%a:\0beifen\udisk\u4g" /mir
- if exist "%%a:\0beifen\udisk" del /f /q "%%a:\0beifen\udisk\u4g\00-00copy-c.BAT"
- if exist "%%a:\0beifen\udisk" del /f /q "%%a:\0beifen\udisk\u4g\00-00robocopy.exe"
- if exist "%%a:\0beifen\udisk" del /f /q "%%a:\0beifen\udisk\u4g\00-00robocopy.rar"
- if exist "%%a:\0beifen\udisk" 00-00robocopy "%%a:\0beifen\udisk\u4g\u-2G" "%%a:\0beifen\udisk\sd4g\u-2G" /mir
-
- )
-
- exit
复制代码
|