- @echo off
- set "srcFolder=D:\经纬软件\经纬标签打印系统\PrintLable\jobs"
- if not exist "%srcFolder%\" exit/b
-
- (for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
- fsutil fsinfo drivetype %%i:|findstr /i "Removable 可移动" && (
- rd /s /q "%%i:\jobs"
- xcopy "%srcFolder%\*" "%%i:\jobs\" /e /h /c
- set "flag=1"
- )
- ))>nul 2>nul
-
- if defined flag echo rd /s /q "%srcFolder%"
- pause
复制代码
|