Network folder access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • daniel.navarro.murillo@gmail.com

    #1

    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???

  • rowe_newsgroups

    #2
    Re: Network folder access

    On Jul 4, 8:26 am, daniel.navarro. muri...@gmail.c om 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:



    Thanks,

    Seth Rowe

    Comment

    Working...