以下这段代码要怎么修改才能根据硬件启动QQ。意思是drives.ini里存的信息和读出的相同就启动QQ。不相同就不启动QQ。麻烦这里的大哥帮我修改下。谢谢。
@echo off
color 0a
title 硬件检测
mode con cols=90
sc config winmgmt start= auto >nul 2<&1
net start winmgmt 2>1nul
setlocal ENABLEDELAYEDEXPANSION
echo.
for /f "tokens=1,* delims==" %%a in ('wmic cpu get name^,ExtClock^,CpuStatus^,Description /value') do (
set /a tee+=1
if "!tee!" == "6" echo %%b
)
set r=%%b
findstr /c:"%r%" drives.ini
if %errorlevel%==0 start QQ.exe
pause
@echo off
color 0a
title 硬件检测
mode con cols=90
sc config winmgmt start= auto >nul 2<&1
net start winmgmt 2>1nul
setlocal ENABLEDELAYEDEXPANSION
echo.
for /f "tokens=1,* delims==" %%a in ('wmic cpu get name^,ExtClock^,CpuStatus^,Description /value') do (
set /a tee+=1
if "!tee!" == "6" echo %%b
)
set r=%%b
findstr /c:"%r%" drives.ini
if %errorlevel%==0 start QQ.exe
pause
