PC Review


Reply
Thread Tools Rate Thread

Copying a file to a network share

 
 
Frank Rizzo
Guest
Posts: n/a
 
      26th Oct 2004
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
 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      26th Oct 2004
Hi,

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

Ken
------------------
"Frank Rizzo" <(E-Mail Removed)> wrote in message
news:eGe$(E-Mail Removed)...
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


 
Reply With Quote
 
Frank Rizzo
Guest
Posts: n/a
 
      26th Oct 2004
Ken Tucker [MVP] wrote:
> Hi,
>
> Maybe this will help.
> http://www.dotnet247.com/247referenc...28/144136.aspx


My code looks similar, but I'll give this a try tomorrow.
Thank you.

>
> Ken
> ------------------
> "Frank Rizzo" <(E-Mail Removed)> wrote in message
> news:eGe$(E-Mail Removed)...
> 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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
0x800705AA While copying file form network share? =?Utf-8?B?UmFtcnVubmVy?= Windows Vista Networking 0 30th Apr 2007 02:22 PM
Dragging Messages to Network Share (Error Copying file or folder) =?Utf-8?B?S3Jpcy5GdWxnaGFt?= Microsoft Outlook Discussion 0 16th Aug 2005 01:58 AM
Copying a file to a network share Frank Rizzo Microsoft C# .NET 7 29th Oct 2004 05:05 AM
Copying a file to a network share, take 2 Frank Rizzo Microsoft VB .NET 0 26th Oct 2004 07:45 PM
copying outlook to network share Charlotte Microsoft Outlook Discussion 1 15th Aug 2003 12:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 AM.