禁用以下系统服务1.NetMeeting Remote Desktop Sharing2.Universal Plug and Play Device Host3.Messenger4.Performance Logs And Alerts5.Remote Registry6.Fast User Switching Compatibility7.Telnet8. Remote Desktop Help Session Manager9.TCP/IP NetBIOS Helper10.appli
echo off
title mysql
::从注册表找到Mysql的安装路径写入文件mysql.txt
reg query HKLM\SYSTEM\ControlSet001\Services\MySQL | find /I "ImagePath">C:\mysql.txt
if %errorlevel% neq 0 (
echo MySQL not found
pause
exit
)
::以”为分隔符,截取第二段内容保存到变量mysqlPath
FOR /F tokens^=2