|am trying to write a script to find the correct driver.|
W:\win7>devcon listclass display
Listing 2 device(s) for setup class "Display" (Display adapters).
PCI\VEN_10DE&DEV_0CA3&SUBSYS_00000000&REV_A2\4&2FAE9228&0&0008: NVIDIA GeForce GT 240
ROOT\DISPLAY\0000 : VNC Mirror Driver
Of these, I want to grab "PCI\VEN_10DE&DEV_0CA3" and use this to search inf files in folders. this part i probably can do. so what I don't know how to do is to grab the variable.
findstr /s /c:"PCI\VEN_10DE&DEV_0CA3" "c:\drivers\*.inf"
oh yeah, will i need to escape "&" ?