我正在尝试这个并且无法让它工作?此时获取 datareal\copiesdonotdelete.txt 是意外的。
rem @echo off
if exists datareal\copiesdonotdelete.txt goto DoFunction1
Goto DoFunction2
Exit
:DOFunction1
rename data datatemp
rename datareal data
rename datatemp datacopyfiles
Echo Done
Exit
:DOFunction2
rename data datatemp
rename datacopyfiles data
rename datatemp datareal
Echo Done
Exit