批处理脚本中的以下简单步骤给了我错误。它说
'else' is not recognized as an internal or external command,
operable program or batch file.
) was unexpected at this time.
有人可以帮忙吗?
set var_machine64 = 0
if exist "C:\Program Files (x86)" ( set var_machine64 = 1 )
if !var_machine64! == 1 (
If exist "C:\Program Files (x86)\Microsoft" (
echo Microsoft folder not available
goto End ) )
else (
If exist "C:\Program Files \Microsoft" (
echo Microsoft folder not available
goto End ) )
:End
Exit