@echo off echo 插入U盘前请先运行此脚本 pause cls for %%a in (a b 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 ( echo nl>>%%a:\nudsk.tmp ) echo 可以插入U盘了,U盘插入后 pause cls for %%a 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 a b) do ( if not exist %%a:\nudsk.tmp ( copy %%a:\x.doc c:\ goto:f ) else ( break ) ) :f echo 文件复制成功! pause>nul