Accessing files on another machine

  • Thread starter Thread starter Dan Tallent
  • Start date Start date
D

Dan Tallent

I have a situation where I want my application to access a shared directory
on a remote computer. This share will have a User and Password that is for
my application. I want the software to access the share without allowing a
user to access the share using Windows Explorer.

Is this possible? If so, what classes should I research to do this?

Thanks in advance,
 
Thx for your quick response. I was hoping for an easier method, but I will
probably end up writting a class for transferring the files from a protected
location on the server using Sockets and TCP.

Thx for your help
Dan


John Timney ( MVP ) said:
A share is a share. You can set it so that it only has permissions for 1
user to access it, but that could be from any resource including explorer.

http://www.pinvoke.net/default.aspx/netapi32/NetUseAdd.html

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Back
Top