@echo off set checked=0 if exist "%windir%Microsoft.NETFrameworkv1.0*" set checked=1 if exist "%windir%Microsoft.NETFrameworkv1.1*" set checked=1 if exist "%windir%Microsoft.NETFrameworkv2.0*" set checked=1 if exist "%windir%Microsoft.NETFrameworkv3.0*" set checked=1 if exist "%windir%Microsoft.NETFrameworkv3.5*" set checked=1 if %checked% EQU 1 (echo 已安装.NET Framework) else (echo 未安装.NET Framework) pause>nul