System Infomation

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

System Infomation

#1 Post 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

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: System Infomation

#2 Post 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 648 times
if you need more just say what you need, i can "generate" the PRG with my Application
greetings by OHR
Jimmy

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: System Infomation

#3 Post 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.

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: System Infomation

#4 Post 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
greetings by OHR
Jimmy

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: System Infomation

#5 Post by unixkd »

Thanks

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

Joseph

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: System Infomation

#6 Post 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!
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: System Infomation

#7 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: System Infomation

#8 Post 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.
greetings by OHR
Jimmy

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: System Infomation

#9 Post 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
greetings by OHR
Jimmy

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: System Infomation

#10 Post by unixkd »

Thanks so much.

I will get back to you if I have challenges

Joseph

Post Reply