PC Review


Reply
Thread Tools Rate Thread

connect to another machine by ip address

 
 
Claudia Fong
Guest
Posts: n/a
 
      5th May 2009
Hi,

Is it possible to use c# to connect to another machine by its ip
address?

I used to type \\150.0.0.81\c$ to access the c drive of another machine
in my explorer window...

Is it possible to do it in c#?

All I need is to access the c drive of different machine by its ip
address

Cheers!

Claudi

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Pavel Minaev
Guest
Posts: n/a
 
      5th May 2009
On May 5, 6:59*am, Claudia Fong <cdolphi...@yahoo.co.uk> wrote:
> Hi,
>
> Is it possible to use c# to connect to another machine by its ip
> address?
>
> I used to type \\150.0.0.81\c$ to access the c drive of another machine
> in my explorer window...
>
> Is it possible to do it in c#?
>
> All I need is to access the c drive of different machine by its ip
> address


It's called a UNC path, actually. It's a Windows feature, and is
transparently available to any application working with files. Just
use the normal file APIs (FileInfo/DirectoryInfo to browse files,
FileStream to open them), and give them UNC paths. It should just work
for you.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using RDP from a WinXP machine to Connect to a Win2000 machine =?Utf-8?B?b3JjaGlkaGFiaXQ=?= Microsoft Windows 2000 5 8th Jun 2007 04:44 PM
Can't connect to local machine with anything except IE Other browsers can't connect without password Otis Mukinfus Microsoft ASP .NET 3 8th Jul 2005 04:54 AM
can't connect win 2000 machine to win xp home machine =?Utf-8?B?Y2pi?= Windows XP Networking 1 22nd Mar 2005 01:09 AM
Unable to connect to machine behind MS MN-700 router using WAN IP address =?Utf-8?B?VGFkIFByaWNl?= Windows XP Work Remotely 8 21st Apr 2004 03:43 AM
Can't connect to shared drive on W2K machine from Windows 98 machine Ed Microsoft Windows 2000 Networking 3 23rd Jan 2004 08:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 AM.