Jump to content

System diagnostics

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
vivek.purohit0078

vivek.purohit0078

    Newbie

  • Members
  • Pip
  • 2 posts
My app uses WMI classes to gather computer information RAM,Processor,LAN,Monitor, HDD,FDD,CD-Drive and mouse keyboard etc.

But for keyboard and mouse it gives the health status like connected or disconnected from what the status of it was at the boot time.

Can somebody help me to update the status while the computer is running.

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Do you mean the boot of the computer, or the load of the application?

You could use a System.Threading.Timer to update the info at set intervals. Just add one using the toolbox, double click it to access its Tick event, and put the code that gathers information into the event handler. :)
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
vivek.purohit0078

vivek.purohit0078

    Newbie

  • Members
  • Pip
  • 2 posts
U didn't get it. The problem is different! My application when run writes to a file what devices are connected and their health status(CONNECTED,DISCONNECTED) and some other vital information about them.

If i run the application when the LAN wire is connected the health status comes out to be CONNECTED. Now if I pull off the wire and then run the application it comes out to be DISCONNECTED.

But if i do the same operation on keyboard and mouse the status doesn't change; it always comes to be connected.

Answer this!!!!

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Er... I can't. I'll have a think. :)
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Maybe you should zip and upload the source code. We can take a look at it.