bat 检测.NET framework框架后运行程序 否则自动安装

@echo off
title Welcome Use Windows Cleaning Assistant
ver|find "6.1" >nul
if %errorlevel% NEQ 0 goto end
if exist %windir%Microsoft.NETFramework64v4.0.30319 (
    start WCA.Win.exe
    exit
) else (
    echo Setup .NET framework 4 now...
    net4.exe /norestart /passive
)
cls
echo If WCA.exe cannot startup immediately, please reboot your system...
:end
start WCA.Win.exe
原文地址:https://www.cnblogs.com/wujiangling/p/14110285.html