I have a folder A, I want to move it from my computer to a server on the network.
I've tried Directory.Move(A,Server)
but because they don't have the same root it does not work.
File.Copy(A,Server)
won't work as the folder is read only and can't change permissions.
Thanks in advance.
EDIT inculding code
string copyFrom = @"folder";
string copyTo = @"\\server\Libraries\Documents";
string destinationPath = Path.Combine(copyTo, Path.GetFileName(copyFrom));
File.Copy(copyFrom, destinationPath);
That is the code I am currently using.
EDIT 2
My computer and Server are on different domains.