例如:
@echo off
if exist %1 dir /b /s >%2 else echo exception
我先前的代码是这样的 if exist test1.bat echo test else echo test2 也是无法执行else中的内容
我改成if not exist test1.bat (echo test) else (echo test2) 就可以执行了
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息