list files of a remote computer
Hi there!
I am trying to access all the .exe files of a computer, this is wat i have.
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
GetFiles("c:")
End Sub
Private Sub GetFiles(ByVal path As String)
Dim entries() As String = Directory.GetFileSystemEntries(path)
Dim iLp As Integer
For iLp = 0 To entries.Length - 1
If entries(iLp).Substring(entries(iLp).Length - 4) = ".exe" Then
ListBox1.Items.Add(entries(iLp) & vbCrLf & (FileVersionInfo.GetVersionInfo(entries(iLp)).CompanyName) & vbCrLf & (FileVersionInfo.GetVersionInfo(entries(iLp)).ProductName) & vbCrLf & (FileVersionInfo.GetVersionInfo(entries(iLp)).ProductVersion))
End If
If Directory.Exists(entries(iLp)) Then
GetFiles(entries(iLp))
End If
Next iLp
End Sub
how would you access the files of a remote computer. i want to find a fast way of getting all the files into the lastbox. Thanks in advance.