|
- ENVI^ ForceLocal=1
- SET$ &NL=0d 0a
- SET &QU="
- SET &KP=[
- SET &D=11\Windows\inf
- SET ®=.\DriverDeviceIds.reg
- FORX *off %&D%\*.inf,&FS,,*
- SET> FS=%NL%
- SET< FS=%NL%
- READ %®%,**,&RV
- SET &RV2=
- SET &pi=0
- SET &RV1H=
- SET &RV1S=
- SET &N=0
- SET &ND=0
- FORX *NL &RV,&&Ri,
- { LSTR * &&c1=1,Ri
- @FIND $%&c1%=%&QU%,
- {*SED -ex &&Fi=1,"{.*}".*,\1,&Ri
- SED -ni -ex &&pi=?1,%NL%%&Fi%%NL%,,&FS
- IFEX #%pi%<=0, @TEAM CALC ND=%ND%+1| SET< RV1S=%NL%"%&Fi%"=-! @TEAM CALC N=%N%+1| SET< RV1S=%NL%%&Ri%
- }!
- {* IFEX #[ %ND%=1 && %N%=0 ],
- {* MSTR * RV1H=4,0,RV1H
- SET< RV2=%NL%[-%RV1H%%RV1S%
- }!
- {* SET< RV2=%RV1H%%RV1S%
- }
- @TEAM SET RV1H=| SET RV1S=| SET N=0| SET ND=0
- @FIND $%&c1%<>%&KP%, @TEAM SET< RV2=%NL%%&Ri%! SET< RV1H=%NL%%&Ri%
- }
- }
- IFEX #[ %ND%=1 && %N%=0 ],
- {* MSTR * RV1H=4,0,RV1H
- SET< RV2=%NL%[-%RV1H%%RV1S%
- }!
- {* SET< RV2=%RV1H%%RV1S%
- }
- MSTR * &RV3=3,0,RV2
- ///REG 中 没有的 INF 变=-; [-HKEY
- MESS. %RV3%
复制代码
==========================
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\11\DriverDatabase\DeviceIds]
[-HKEY_LOCAL_MACHINE\11\DriverDatabase\DeviceIds\*MSLOOP]
"netloop.inf"=-
[-HKEY_LOCAL_MACHINE\11\DriverDatabase\DeviceIds\*PNP0D00]
"mf.inf"=-
[-HKEY_LOCAL_MACHINE\11\DriverDatabase\DeviceIds\*pnpffff]
"unknown.inf"=-
[HKEY_LOCAL_MACHINE\11\DriverDatabase\DeviceIds\ACPI]
|
|