Copying a file to a network share

F

Frank Rizzo

Hello, my app needs to copy a file from local TEMP folder to network
share. The network share is accessible via a domain ID.
I am trying to call LogonUser API, then ImpersonateLoggedOnUser, then
copy the file to this share. But I keep on getting errors. Even though
all the APIs return success, copying files still comes back with "Access
denied" type of errors.

Am I missing something here?

Thanks
 
K

Ken Tucker [MVP]

Hi,

Maybe this will help.
http://www.dotnet247.com/247reference/msgs/28/144136.aspx

Ken
------------------
Hello, my app needs to copy a file from local TEMP folder to network
share. The network share is accessible via a domain ID.
I am trying to call LogonUser API, then ImpersonateLoggedOnUser, then
copy the file to this share. But I keep on getting errors. Even though
all the APIs return success, copying files still comes back with "Access
denied" type of errors.

Am I missing something here?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top