Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNC File Copy

Status
Not open for further replies.

NuWood

Programmer
Mar 14, 2002
44
0
0
GB
Hi

I am attempting to copy a file using UNC file paths i.e. \\server\somepath\somefile.txt to \\server\someotherpath\somefile.txt

I am using copyfile but it does not work. If I change to path names such as P:\somfile.txt etc. it works fine.

I get no exception it just fails to do the copy.

Any ideas how I can copy using the UNC path. I have to use UNC by the way.

regards
Andrew
 
Never failed me.

May be a rights issue?

buho (A).
 
use movefile instead of copyfile.

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top