以下のバッチ スクリプトの簡単な手順でエラーが発生します。それは言う
'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