@echo off::是否在D般根目录存为1.txt,若存在,则执行1if exist d:\1.txt goto 0 :0 echo 存在1,我要复制!::若存在为将1.txt复制到c盘 copy d:\1.txt C: goto exit