Page 1 of 1

System Infomation

Posted: Sun Jun 24, 2012 12:39 am
by unixkd
Hi All

Anybody with a comprehensive routine that will give me detailed system information such as processor, Os version, IP address, Memory size, Etc, etc....

Thanks

Joseph

Re: System Infomation

Posted: Sun Jun 24, 2012 10:05 am
by Auge_Ohr
unixkd wrote:Anybody with a comprehensive routine that will give me detailed system information such as processor, Os version, IP address, Memory size, Etc, etc....
you can use WMI to get these Information. i add some Sample see Attachment.
WMI.zip
some WMI Sample
(9.73 KiB) Downloaded 659 times
if you need more just say what you need, i can "generate" the PRG with my Application

Re: System Infomation

Posted: Mon Jun 25, 2012 4:20 am
by unixkd
Thanks so much, I appreciate your support

Here is my list

Country
Language
Paging size
Operating system
System startup time
Temporary directory
Windows registered owner
Windows directory
Time format
Date format
User Name
No of running programs
screen resolution
Default printer
currency symbol
date separator
time separator
Digit grouping
IP Address
Public IP address
drives information
Services running
Character Map Table
etc.

Re: System Infomation

Posted: Mon Jun 25, 2012 10:38 am
by Auge_Ohr
hi,
unixkd wrote:Here is my list
sorry to say : i need the Class Name (W32_*) like in Sample, not the Property.

look at this Link for WMIcreater what "original" can do. at the End of the Page is a Link to Microsoft.
http://www.microsoft.com/downloads/deta ... laylang=en
my Tool works same Way but it generate Xbase++ Code instead of VB / C

p.s. many Property do not work without "Hardware" like "Batterie" (only portable have)
other like Temperatur most need a spezial "Script" like HP Server have it

Re: System Infomation

Posted: Tue Jun 26, 2012 1:06 am
by unixkd
Thanks

Can you please send me your Tool that generate Xbase++ code. If fee is required let me know

Joseph

Re: System Infomation

Posted: Tue Jun 26, 2012 3:02 am
by Tom
Hi, Joseph.

Most of the informations you need can be retrieved using either API-functions and/or already built-in-functions of eXpress++ - or even the Set()-function of Xbase++. Even GetEnv() returns information you need - for example: GetEnv("Computername") returns the name of the workstation. You may, another example, take a look at DC_GetWorkArea(), which retrieves the to-be-used screen size. AppDesktop():CurrentSize() returns the complete size of the desktop, so simply: the resolution of the screen. OS() (a Xbase++-function) returns the name of the operating system. And so on. Don't forget: There is no such thing as the "IP adress of the computer". The network adapter(s) may have IP adresses, the computer itself doesn't. There may be several network adapters (actual computers at least have two, LAN and WiFi), so there is no single information which identifies the workstation.

And: WMI only works if the .Net-Framework is installed!

Re: System Infomation

Posted: Tue Jun 26, 2012 4:30 am
by Tom
Add:

Just type "SET" (and <ENTER>, of course) at the command prompt. All the information you see there can be retrieved using "GetEnv()" directly from Xbase++ by just using the name of the environment variable (like "Computername" or "windir" for the directory name of the Windows installation). Some of them may not be available on every system, but most of them. Also take a look at SetLocale() of Xbase++. This will give you access to several settings like the name/number of the country, the date format and others.

Re: System Infomation

Posted: Tue Jun 26, 2012 9:04 am
by Auge_Ohr
Tom wrote:And: WMI only works if the .Net-Framework is installed!
are you sure ??? i donĀ“t think so only WMI Service must run.

Re: System Infomation

Posted: Tue Jun 26, 2012 9:10 am
by Auge_Ohr
unixkd wrote:Can you please send me your Tool that generate Xbase++ code. If fee is required let me know
the WMIcreater Tool you can get is the "original" by Microsoft see above. that Tool will create VB / C Code.
Now i "translate" that Code into Xbase++ ... thats the Work to do.

i did include some WMI Sample last Time so you can see how Code look like.
if you still have Problem than i can help you if you tell me which W32_* Class you like

Re: System Infomation

Posted: Tue Jun 26, 2012 12:22 pm
by unixkd
Thanks so much.

I will get back to you if I have challenges

Joseph