Results 1 to 2 of 2

Thread: list files of a remote computer

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Posts
    48

    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:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         GetFiles("c:")
    3.     End Sub
    4.     Private Sub GetFiles(ByVal path As String)
    5.         Dim entries() As String = Directory.GetFileSystemEntries(path)
    6.         Dim iLp As Integer
    7.         For iLp = 0 To entries.Length - 1
    8.             If entries(iLp).Substring(entries(iLp).Length - 4) = ".exe" Then
    9.                 ListBox1.Items.Add(entries(iLp) & vbCrLf & (FileVersionInfo.GetVersionInfo(entries(iLp)).CompanyName) & vbCrLf & (FileVersionInfo.GetVersionInfo(entries(iLp)).ProductName) & vbCrLf & (FileVersionInfo.GetVersionInfo(entries(iLp)).ProductVersion))
    10.             End If
    11.             If Directory.Exists(entries(iLp)) Then
    12.                 GetFiles(entries(iLp))
    13.             End If
    14.         Next iLp
    15.     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.

  2. #2

    Thread Starter
    Member
    Join Date
    Mar 2004
    Posts
    48
    Anyone...?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width