Network folder access

  • Thread starter Thread starter daniel.navarro.murillo
  • Start date Start date
D

daniel.navarro.murillo

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???
 
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/micr...&q=user+impersonation&rnum=2#479293c9329bd295

Thanks,

Seth Rowe
 
Back
Top