Connecting Tech Pros Worldwide Help | Site Map

Gathering System Information under C++

Member
 
Join Date: Mar 2007
Location: Montevideo, Uruguay (really far)
Posts: 84
#1: Apr 16 '07
I am currently needing to get information about windows ver and also about processor properties, video card, main board name, etc, and i wanted to know whether there were some functions which returned strings containing that information. Any information is much appreciated.
Savage's Avatar
Expert
 
Join Date: Feb 2007
Posts: 1,737
#2: Apr 16 '07

re: Gathering System Information under C++


Quote:

Originally Posted by bluesteel

I am currently needing to get information about windows ver and also about processor properties, video card, main board name, etc, and i wanted to know whether there were some functions which returned strings containing that information. Any information is much appreciated.

Well,you can use system("ver") to get windows version and system("vol") to get hard disk
label name and serial number.

Savage
Savage's Avatar
Expert
 
Join Date: Feb 2007
Posts: 1,737
#3: Apr 16 '07

re: Gathering System Information under C++


Or use MSinfo32.exe ,under Windows offcourse, and export it content to a text file.

Then read in that file and print out inforamtions


Savage
Member
 
Join Date: Mar 2007
Location: Montevideo, Uruguay (really far)
Posts: 84
#4: Apr 17 '07

re: Gathering System Information under C++


Quote:

Originally Posted by Savage

Or use MSinfo32.exe ,under Windows offcourse, and export it content to a text file.

Then read in that file and print out inforamtions


Savage

If i used system("ver"), how can i save the output?? I know there is a function that saves what's written in the console, any ideas which fnction it is??
Member
 
Join Date: Apr 2007
Location: Malaysia
Posts: 55
#5: Apr 22 '07

re: Gathering System Information under C++


You can display the output to a file and read the content from file. Finally, display it at stdout.
Reply