Click to See Complete Forum and Search --> : Copying files across LAN/WAN


RoyceF
November 14th, 2007, 05:17 PM
Hi,

I am trying use the CopyFileEx() API function to copy files across our network from my Windows service application in C++. I have write access to the destination folder as I can manually copy files to it directly or via a DOS BAT file. When I try exactly the same operation in my service, the error is "Path not found". The machine that I am doing this on is not in our domain. Could this be part of my problem?

Thanks

Marc G
November 15th, 2007, 08:53 AM
Your service is probably running as a different user and might not have access to the network share.

RoyceF
November 15th, 2007, 01:04 PM
Marc,

Thanks. You are correct.