473,473 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessing files on another machine

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,
--------------------------------
Dan Tallent
Nov 17 '05 #1
2 1329
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/...NetUseAdd.html

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Dan Tallent" <dt******@NOTEarthlink.net> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
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,
--------------------------------
Dan Tallent

Nov 17 '05 #2
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 )" <ti*****@despammed.com> wrote in message
news:e%*****************@TK2MSFTNGP15.phx.gbl...
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/...NetUseAdd.html

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Dan Tallent" <dt******@NOTEarthlink.net> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
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,
--------------------------------
Dan Tallent


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
2
by: DavidR | last post by:
Hi, My development machine is running Win XP SP2 and IIS. I'm developing an ASP.NET application on this machine that accesses data from a SQL Server database on another machine. That machine...
5
by: gemel | last post by:
I have a wireless networked peer-to-peer LAN and I can access web pages on the Internet. I have a development platform for ASP and I can access all pages on this machine by using the localhost...
3
by: Baron | last post by:
an asp.net page on Machine A is trying to access files on several machines of different domains.. any 'good' method to do it without mapping drive in prior..... i've read something called...
5
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to...
4
by: Khalique | last post by:
I have built a web service whose purpose is to copy files from a secure place to client machine and vice versa. The problem I am having is perhaps related to permissions and access rights. For...
2
by: rachana | last post by:
Hi, I am trying to deploy a asp.net website developed using Visual Studio 2005 on server. Application works fine on development machine, but when trying to run on server I get following error...
2
by: Gerhard | last post by:
I have a .net application that I want to run in a DMZ, with the SQL Server and file system behind another firewall. Is there a secure way to get to files from my application, or would it be better...
1
by: quintesv via DotNetMonster.com | last post by:
Hi all, I have written a class to set the current principal identity of a asp.net 1.1 vs 2003 project to a domain user by means of LOGONUSER, which effectively lets me access files on another...
1
by: h | last post by:
Hi, I am trying to build a simple web database that will be accesible from only local area network. I have installed EasyPHP package on WinXP system and allowed access one other PC in my LAN....
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.