how to move files from one system to another system using ASp.net and c#.net
Please try to suggest me how to do this. I need to copy or move 开发者_开发技巧files from one system to another system. I did this but it saying invalid path..
var fileName = "Text.txt";
var local = Path.Combine(@"C:\\public_html\\TEST\\gr_library\\", fileName );
var remote = Path.Combine(@"XXX.XXX.X.X\\C:\\public_html\\TEST\\gr_library\\", fileName );
File.Move(remote, local );
Please give some code snippet which is executable...
You need to put \ in the front of the ip, like \123.456.789.10\folder. Make sure that the user also has access to the remote pc.
精彩评论