cmd如何判断变量是否定义,
通常的做法:
IF "%MyVar%"=="" ECHO MyVar is NOT defined
使用ELSE
IF "%MyVar%"=="" (ECHO MyVar is NOT defined) ELSE (ECHO MyVar IS defined)
日期:2020-04-11 22:50:11 来源:oir作者:oir
cmd如何判断变量是否定义,
通常的做法:
IF "%MyVar%"=="" ECHO MyVar is NOT defined
使用ELSE
IF "%MyVar%"=="" (ECHO MyVar is NOT defined) ELSE (ECHO MyVar IS defined)