Thanks for the reply.
I am currently using that code to Impersonate a user that has FULL
permissions on the share, and full permissions on the Files and Folders held
within that share.
After Impersonation (and before undoing the impersonation) I am able to
connect to the subdirectory on the share and verify that folder is visible.
I am also able to write out the contents of the subfolder as a test. The
next step is to open an excel file and read out some values. At this point
it fails saying that the File Cannot be found. I know the file path is
valid. Are there other issues here that I am not aware of?
The code module that creates an Excel.Application object and opens the file
is not instantiated and called until after the Impersonation is successful.
But it still appears like it is trying to open the file using the actual
user's security context, and not the impersonated one.
Any help would be appreaciated.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
http://www.dotnet247.com/247referenc...28/144136.aspx
Ken
---------------------
"Johnny Fugazzi" <re*******************@ldmkusa.com> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
I would like to access a network share from my vb.net application. I do
not
want to map a drive to the share, however. I would also like to specifiy
a
user credential to use when connecting to the share, as the user running
the
application will not have security rights to hit the share themselves.
Any pointers on this?