Does anyone know how the function File.Copy() is implemented? I need to know if the file is copied using TCP connection.
Thanks, Haviva.
It uses the native Win32 method CopyFile in kernel32.dll. Files are copied over the normal file system or over SMB (which was correctly pointed out to use TCP by mjmarsh).
Or as Scott Dorman correctly adds it can use the CreateFile method also in kernel32.dll.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With