Getting Folder Information from another PC

Hi,

I'm relatively new to Visual Basic Express, and I thought, as I'm having experience programming Visual Basic 6.0 applications, I should not be confronted with so many problems.

The application I'm developing at the moment needs information of files which are saved on another computer. I have already written a method copying a file to the local computer's "My Documents" folder.

My Problem is:
I want to copy all files in a specified directory. How can I get a list including the names of all files in a directory on the other computer
(Note: The other computer is part of a LAN)


Thanks for your help
HS


Answer this question

Getting Folder Information from another PC

  • terceslil

    Do you access the directory on the other computer as a network share If so, you can read the directory just like a local directory:



    Imports System.IO

    For Each filename As String In Directory.GetFiles("\\workstation\share")
        File.Copy(filename, ...)
    Next

     



  • Shalini

    Thanks! This solves my problem.
  • Getting Folder Information from another PC