6

我正在尝试这个并且无法让它工作?此时获取 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
4

1 回答 1

10

它的存在不存在

if exist datareal\copiesdonotdelete.txt goto DoFunction1
于 2012-09-11T18:43:14.543 回答