最佳答案
我必须创建一个.BAT
文件来完成以下工作:
C:\myprogram\sync\data.handler
存在,退出;C:\myprogram\html\data.sql
不存在,退出;C:\myprogram\sync\
中删除除(test
, test3
和test2
)之外的所有文件和文件夹C:\myprogram\html\data.sql
到C:\myprogram\sync\
sync.bat myprogram.ini
调用其他批处理文件。如果是在Bash环境中,这对我来说很容易,但我不知道如何测试一个文件或文件夹是否存在,以及它是否是一个文件或文件夹。