gratz Posted March 25, 2006 Share Posted March 25, 2006 Hello everyoneI am not sure if this can be done can you test to see if a certain piece of hardware is in your machinethen based on this test i hope to install the device drivers and any other programs associated with iti have 3 pcs with different graphics cards and want to use runonceex to installthe correct graphics drivers etc, but i first need to find out using code which card is installedthe cards i am using at the moment are ati radeon and nvidea geforce x600any help would be greatthanks in advance Link to comment Share on other sites More sharing options...
MadBoy Posted March 25, 2006 Share Posted March 25, 2006 Check this link. It's little program i wrote. You could put drivers for both (or more) cards on cd in \Drivers dir. Then edit hardware.ini. Make sure the paths are all correct. When you will run program hardware.exe it should detect "unknown" (which in your case will be graphic card) devices, remove it, change path to Drivers .. and redetect devices. It's all done by one click. SO should fit your needs. Make sure to read the thread completly for more info. If you have questions. Lemme know. Keep in mind its' still alpha stage ;p Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted March 28, 2006 Share Posted March 28, 2006 You can check the output of this command using devcon tool:devcon drivernode =DisplayYou will need some batch script expertise to write a full script.sample output on a box with driver already installed.PCI\VEN_8086&DEV_1132&SUBSYS_004C110A&REV_04\3&61AAA01&0&10 Name: Intel Corporation 815 Embedded Graphics ControllerDriverNode #0: Inf file is c:\windows\inf\ssigd.inf Inf section is ssigd_wht Driver description is Intel Corporation 815 Embedded Graphics Controller Manufacturer name is Intel Corporation Provider name is Intel Corporation Driver date is 1/15/2006 Driver version is 5.0.0.756 Driver node rank is 8193 Driver node flags are 00002240 Inf is digitally signed1 matching device(s) found. Link to comment Share on other sites More sharing options...
cdob Posted March 28, 2006 Share Posted March 28, 2006 @gratzDoes one machine contain one graphic or two graphic cards? Try (one graphic card assumed)@echo offfor /f "tokens=1-3* delims=\& " %%a in ('"devcon hwids *CC_0300"') do ( if [%%b]==[VEN_1002] (echo ATI graphic card %%b %%c found &goto :install_ati_graphic_card) if [%%b]==[VEN_8086] (echo Intel graphic card %%b %%c found &goto :install_graphic_card) if [%%b]==[VEN_102B] (echo Matrox graphic card %%b %%c found &goto :install_graphic_card) if [%%b]==[VEN_10DE] (echo Nvidia graphic card %%b %%c found &goto :install_nvidia_graphic_card))echo Graphic card not found.goto :eof:install_ati_graphic_card echo Install graphic card.goto :eof :install_nvidia_graphic_card echo Install graphic card.goto :eof :install_graphic_card echo Install graphic card.goto :eof Link to comment Share on other sites More sharing options...
RogueSpear Posted March 28, 2006 Share Posted March 28, 2006 If you have a dual head card, it often reports two cards. Same with a laptop that can use the external VGA port as a second display. Link to comment Share on other sites More sharing options...
jftuga Posted March 28, 2006 Share Posted March 28, 2006 (edited) The easiest way for me to determine PCI hardware -- not just graphics cards, but also network, sound, ide, etc. is to use a Linux rescue boot CD or a Live CD. Once at a shell prompt, you can run: lspci | less- or for more detailed info -lspci -vv | lessThis will tell you everything about your PCI & AGP devices. You don't even need Linux installed.-John Edited March 28, 2006 by jftuga Link to comment Share on other sites More sharing options...
dobbelina Posted April 1, 2006 Share Posted April 1, 2006 I think the nicest tool to detect hardware info, is without question Everest from Lavalys. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now