473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Network folder access


Hi all,

I'm using Process.Start() to execute an application which receives a
file name as parameter. The file is stored into a network shared
folder and I need to specify user and password to get access to the
file. So that I need to specify user/password for the file and not for
the application.

How can I provide that user/password??

I tried setting up a network drive unit before starting the
application and deleting it when the application is closed, but I
don't like very much that solution because the files in the protected
folder would be available for any user if the application is started
and also because i need to execute several application instances at
the same time so I would need to map several units...

Some ideas???

Jul 4 '07 #1
1 1530
On Jul 4, 8:26 am, daniel.navarro.muri...@gmail.com wrote:
Hi all,

I'm using Process.Start() to execute an application which receives a
file name as parameter. The file is stored into a network shared
folder and I need to specify user and password to get access to the
file. So that I need to specify user/password for the file and not for
the application.

How can I provide that user/password??

I tried setting up a network drive unit before starting the
application and deleting it when the application is closed, but I
don't like very much that solution because the files in the protected
folder would be available for any user if the application is started
and also because i need to execute several application instances at
the same time so I would need to map several units...

Some ideas???
You need to use impersonation to do this. The following link should
help:

http://groups.google.com/group/micro...9293c9329bd295

Thanks,

Seth Rowe

Jul 4 '07 #2

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

Similar topics

11
by: Jessard | last post by:
Hi all, This seems like a really simple question but I don't think there is a simple answer. If there is I'd be glad to hear it. I am trying to create a folder, yep, that's all. I can do it...
10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
1
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted....
2
by: flat_ross | last post by:
Hi, I am in a shop where developers are required to work off of a network share. This is so that code is backed up nightly. So I am testing running an ASP.NET Web application with a Class...
11
by: ASP.NET User | last post by:
Hi I am in a shop where developers are required to work off of a networ share. This is so that code and other documentation is backed up nightly. This is outside the realm of Visual SourceSafe...
5
by: Mitchell S. Honnert | last post by:
Is there a way, given the full path of a folder on a network, that one can programatically tell if you have Read access to that folder? I have an application where the user is able to select a...
4
by: Dixie | last post by:
I want to send a file to each persons home network space. I believe that when a person logs onto a network, some sort of variable is set that identifies the user. Is there any code that would...
1
by: abhanjee | last post by:
Hello, I am facing some challenges in creating a folder in the file server on the same network. The application will create a folder on the network share when the user clicks a button. This...
3
by: Michel Smit | last post by:
Hello, I have a question. We have a webserver in a domain, DomainA, and a webserver in a DMZ with local users and groups only. I'm trying to copy a file from the DomainA webserver to the DMZ...
0
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.