|
看看出错提示,显然批处理中有命令没有成功执行,以32位WIN7系统为例,为进行排查:
将这一句:ver | find "6.1" > NUL && set WIN=win7 && goto Subroutine
改为这样:ver | find "6.1" > NUL && set WIN=win7&& goto Subroutine
将这一段:
:win7.x86
echo %WIN%.x86 && exit 0
改成这样:
:win7.x86
echo %WIN% && echo 没问题!
pause
再将这段:if "%PROCESSOR_ARCHITECTURE%"=="x86" set WIN=%WIN%.x86 && echo %WIN% && pause && goto %WIN% || echo x86 error && pause
改成这样:
if "%PROCESSOR_ARCHITECTURE%"=="x86" set WIN=%WIN%.x86
goto %WIN% || echo x86 error && pause
|
|