locked
PerformanceCounter Error RRS feed

  • Question

  • User-1368241743 posted

    Hi All,

    We are using the below code to get the processor time of our remote server

    cpuCounter =

     

    new PerformanceCounter("Processor", "% Processor Time", "_Total","10.92.33.113");

    But its not working.I got an error message "Network path cannot find".But i can ping to the remote server using the above IP.We are using Windows server 2008 (64 bit).

    Please help on this.

    Thank in advance

    ;

     

    Wednesday, September 8, 2010 9:04 AM

Answers

  • User-1852462877 posted

    Do something like this: 

            Dim a1 As New PerformanceCounter(...)

            TextBox14.Text = a14.NextValue

    This depends if your remote PC allows to access its performance measures.

    Sorry no Idea about that...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 8, 2010 5:11 PM