How should the following code be modified so it can launch QQ based on hardware. What I mean is, if the information stored in drives.ini is the same as what is read out, then launch QQ. If it is not the same, then do not launch QQ. Could one of the experts here help me modify it? Thanks.
@echo off
color 0a
title Hardware Detection
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 Hardware Detection
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
