必须写成一行 ) else (,否则报错。 if %abc%=="yes" ( ... ) else ( ... ) 转载于:https://www.cnblogs.com/liujx2019/p/11046360.html