Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cud u advice how to retrive computer name list

Status
Not open for further replies.

cmaknp

Programmer
Aug 28, 2002
25
IN
Hello..

please any one advice how to retrive computer name/Drive list from "Windows Network Neighbourhood"

please tell me how wud i make code"
 
i hv two computer "comp1" & "comp2"

i hvto copy one "temp.txt" file from "comp2" to "comp1" by visual basic code

anyone cud advice how to coding.
 
To copy files from comp1 to comp2 use FileCopy:

Dim strSource As String
Dim strDest As String
strSource = "\\comp1\share\fred1.txt"
strDest = "\\comp2\projects\fred.txt"
FileCopy strSource, strDest

Where share is a share name on comp1 and projects is the share name on comp2
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top