Accessing a computer through LAN using .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

Will be very helpful if anyone can share the idea o

'how to access a computer in a LAN using .NET

Thank yo
Jinu.
 
Hi Jinu,

I assume you just want to access a shared directory/file on a remote
computer? The code for this is very similar to accessing the file locally:

Locally:
Dim s As New StreamWriter("C:\myFile.txt")

On LAN:
Dim s As New StreamWriter(\\ComputerName\ShareName\myFile.txt)

Is this what you were trying to find?

Regards,

Eric
 
Open Explorer To a LAN machine
Process.Start("\\" & ComputerNameVariable & "\c$\")
 
Back
Top