首页 > 代码库 > 批处理判断是否有.net环境

批处理判断是否有.net环境

@echo offset checked=0if exist "%windir%\Microsoft.NET\Framework\v1.0*" set checked=1if exist "%windir%\Microsoft.NET\Framework\v1.1*" set checked=1if exist "%windir%\Microsoft.NET\Framework\v2.0*" set checked=1if exist "%windir%\Microsoft.NET\Framework\v3.0*" set checked=1if exist "%windir%\Microsoft.NET\Framework\v3.5*" set checked=1if %checked% EQU 1 (echo 已安装.NET Framework) else (echo 未安装.NET Framework)pause>nul