QUOTE (Galapo @ Mar 26 2009, 11:33 AM)

I'm glad to hear that!
Regards,
Galapo.
I wrote the script below to validate the MassStorage Section. It is not perfect, it does not like odd characters after the \ (ex. PCMCIA\*PNP0600). Fortunately there are not alot of these. ;-)
I also use BuildHWIDList.cmd to build my third party drivers. I got BuildHWIDList.cmd from the Internet. Unfortunatly I have lost the original link. I hope you find them useful...
1. Extract out the massstorage section to a file.
2. Substitute = for " " (SPACE)
3. Change the text to UPPERCASE (i get odd results when I don't do this)
3. Change Noname01.txt to the name of the file you saved.
4. Results will be written to BadIDs.txt (Remove the PAUSE if you like)
CheckHWIDs.CMDCODE
@echo off
pushd %~DP0
for /f "tokens=1*" %%A in (NoName01.txt) do CALL :DoWork "%%A" %%B
pause
GOTO :EOF
:DoWork
echo ***************************
echo Checking %2 for %1
Findstr /i /l /c:%1 %2
If ERRORLEVEL 1 (echo %2 %1&echo %2 %1>>BadIDs.txt&pause)
GOTO :EOF
BuildHWIDList.cmdCODE
@echo off
rem %1 is path to MassDriverPacks Folder
IF "%1"=="" GOTO EOF
IF NOT EXIST %1 GOTO EOF
SETLOCAL ENABLEDELAYEDEXPANSION
SET STDOUT=%cd%\HWIDS.TXT
TYPE>%STDOUT% 2>NUL
::traverse drivers path
CALL :TRAVERSAL %1
GOTO EOF
:TRAVERSAL
PUSHD %1
echo Running Dir...
for /f %%f in ('Dir /b /s *.inf') do (
echo Running Find...&for /f "eol=- tokens=2 delims=," %%i in ('find /i "pci\ven" %%f') do (
for /f "tokens=*" %%j in ("%%i") do (
for /f "tokens=1* delims=_" %%k in ("%%j") do (
if /i "%%k" EQU "PCI\VEN" (
for /f "usebackq tokens=1* delims=; " %%a in ('%%j') do (
echo %%a=%cd%\%%f>>%STDOUT%&echo %cd%
)
)
)
)
)
)
::FOR /F %%I IN ('DIR /AD /OGN /B') DO (
::CALL :TRAVERSAL %CD%\%%I
::)
POPD
GOTO EOF
:EOF