Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27083

Send process list on remote server

$
0
0
Hi! Merry Christmas to everyone. Sorry for this noob question but I can't get it work well I was trying to send all process name to my server but I'm unable to receive all the process name. Is there a way I could store all process list into one variable and send it to the server and on the server I could extract all process name and put it on the listbox.

Code:

    Private Sub GetAllProcessList()
        Dim myProcesses() As Process ' ARRAY OF PROCESSES
        Dim myProcess As Process ' SINGLE PROCESS VARIABLE

        myProcesses = Process.GetProcesses() ' LIST ALL RUNNING PROCESS

        ' ITERATE THRU PROCESS ARRAY
        For Each myProcess In myProcesses
        Me.client.Send("PROCESSLIST|" & myProcess.ProcessName & "|")
        Next
    End Sub


Viewing all articles
Browse latest Browse all 27083


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>