嘿,我经常对此符号有疑问,{&}通常无法使用其他waz来解决此问题,但是今天我无法找到,我想问社区,我的代码是否有问题。>
making test for wifi card for HP 255 G7
echo @%processor_architecture%|查找/ i“ x86” 如果错误级别1设置prikaz = devcon64 如果不是错误级别1,则设置prikaz = devcon
if exist C:\winfunc\wtool\%cmd%.exe goto next
if exist %cmd%.exe goto next
goto missing
:start
set CHECK=WLAN
cls
color 07
echo.
cEcho ~0E%CHECK% CHECK
cEcho ~0E============================================================
echo.
echo Program overi pritomnost wlan karty!
echo.
echo @%processor_architecture% | find /i "x86"
if errorlevel 1 set prikaz=devcon64
if not errorlevel 1 set prikaz=devcon
if exist C:\winfunc\wtool\%cmd%.exe goto next
if exist %cmd%.exe goto next
goto missing
:next
if exist pom.txt del /Q /F pom.txt
call %cmd% status * | find /i /n "WiFi" | find /i /v "bluetooth" >pom.txt
set row=
for /f "tokens=1-2 delims= " %%a in (pom.txt) do set row=%%a
if @%row%==@ goto fail
set row=%row:[=%
set row=%row:]=%
set row=%row: =%
set /a row=%row%+1
call %cmd% status * | find /i /n "driver is running" | find /i "[%row%]"
if not errorlevel 1 goto pass
答案 0 :(得分:0)
好,我知道了,所以我的问题已改变
**call %cmd% status * | find /i /N "Realtek RTL8821CE" >pom.txt**
set row=
for /f "tokens=1-2 delims= " %%a in (pom.txt) do set row=**"%%a"**