File::Copy issue with network permissions

I'm running a program on Computer A.  I want the program to copy a file from Computer B (on the same workgroup) to Computer A.  The file on Computer B is in a shared folder.  Now, I'm using the System::IO::File::Copy command (File::Copy(String* target, String* destination, bool overwrite)).  This works fine when the shared folder has FULL permissions for Everyone.  However, it does not work if the permissions are set to Read only.  I want to be able to copy a file from a computer which I only have read-only access.  Any help on how to do this will be greatly appreciated.  This is a Windows Form Application using Visual C++ .NET 2003.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Does CopyFile API work in this case? You can call unmanaged API directly from managed code.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
raw_enhaAuthor Commented:
I dunno, I've never tried CopyFile.  I'll give it a go though.  I'll let you know if I run into any problems.
raw_enhaAuthor Commented:
worked fine.  thanks.
Interesting. Looks like File::Copy bug or some "hidden feature".
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.