Graphics-Card Vendor and Winst

Antworten
djockheck
Beiträge: 23
Registriert: 03 Jul 2008, 11:13

Graphics-Card Vendor and Winst

Beitrag von djockheck »

Hi,

how can I determine the vendor of the graphics-card in winst-script?

ciao
Detlef
--
Detlef
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Graphics-Card Vendor and Winst

Beitrag von SisterOfMercy »

You could parse through all the subkeys in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Jan.Schmidt
Beiträge: 439
Registriert: 08 Jul 2017, 12:02

Re: Graphics-Card Vendor and Winst

Beitrag von Jan.Schmidt »

djockheck hat geschrieben:Hi,

how can I determine the vendor of the graphics-card in winst-script?

ciao
Detlef
try something like this

Code: Alles auswählen


DosInAnIcon_getVVendor

[DosInAnIcon_getVVendor]
for /f "skip=1" %%a in ('wmic path win32_VideoController get Name^|findstr "."') do set "videovendor=%%~a"
echo "%videovendor%"|findstr /i /C:"Intel" && goto intel
echo "%videovendor%"|findstr /i /C:"whatever" && goto whatever
echo sorry unknown Videocardvendor
goto eof

:intel
echo intel was here
goto eof
:whatever
echo whatever was here
goto eof

:eof
Antworten