Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Copying a file to a network share

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank Rizzo - 26 Oct 2004 02:06 GMT
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
Ken Tucker [MVP] - 26 Oct 2004 03:52 GMT
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
Frank Rizzo - 26 Oct 2004 05:00 GMT
> Hi,
>
>         Maybe this will help.
> http://www.dotnet247.com/247reference/msgs/28/144136.aspx

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

> Ken
> ------------------
[quoted text clipped - 8 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.