仅对语法部分作更改。- @echo off
- cls
- setlocal enabledelayedexpansion
- 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: | find "可移动">nul && (
- set var=%%i:
- if not exist (!var!\jobs) (md !var!\jobs)
- del !var!\jobs\*.* /q>nul
- copy D:\经纬软件\经纬标签打印系统\PrintLable\jobs !var!\jobs /y >nul
- del D:\经纬软件\经纬标签打印系统\PrintLable\jobs\*.* /q >nul
- )
- )
- pause>nul
复制代码
|