Graphics-Card Vendor and Winst

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

Graphics-Card Vendor and Winst

Beitragvon djockheck » 05 Feb 2020, 14:09

Hi,

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

ciao
Detlef
--
Detlef

Benutzeravatar
SisterOfMercy
Beiträge: 1142
Registriert: 22 Jun 2012, 19:18

Re: Graphics-Card Vendor and Winst

Beitragvon SisterOfMercy » 19 Feb 2020, 22:14

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: 129
Registriert: 08 Jul 2017, 12:02

Re: Graphics-Card Vendor and Winst

Beitragvon Jan.Schmidt » 23 Feb 2020, 08:28

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