Avatar of nzfire
nzfire

asked on 

Copy file from mapped drive and impersonate domain logon

Hi All,

I need to be able to copy a whole load of files from a server (via mapped drive etc) to the local pc, or application folder.

I have the required logon credentials to access the file server, but cannot seem to do a file.copy using vb.net.

Can someone help me with a piece of code that will copy each and every subfolder and file given a start path, as well as dealing with the impersonation issues.

Also, I will be using both a pc belonging to the domain and ones that are not part of the domain.

Thanks
.NET ProgrammingVisual Basic Classic

Avatar of undefined
Last Comment
nzfire

8/22/2022 - Mon