Borrowing moderator HAT's code.
Address:http://www.cn-dos.net/forum/viewthread.php?tid=44988###
Result: DEV_0191
But when using devcon restart enable disable, the hardware ID below also works. I don't know which one is actually the network card's complete hardware ID.
VEN_1039&DEV_0191
[ Last edited by rs369007 on 2010-5-3 at 12:36 ]
Address:http://www.cn-dos.net/forum/viewthread.php?tid=44988###
@echo off
rem Use a batch file to call devcon.exe to do this
echo Please enter your choice: (N to disable the network card, Y to enable)
set/p SELECT=
if /i %SELECT%==Y set SELECT=ENABLE&GOTO :DO
if /i %SELECT%==N set SELECT=DISABLE
:DO
for /f "tokens=2 delims=&" %%i in ('devcon find pci\* ^| findstr "Fast Ethernet"') do echo %%i
pauseResult: DEV_0191
But when using devcon restart enable disable, the hardware ID below also works. I don't know which one is actually the network card's complete hardware ID.
VEN_1039&DEV_0191
[ Last edited by rs369007 on 2010-5-3 at 12:36 ]
freedom!
