It´s possible to use two urls with File.Copy with C#? I´m getting different errors :
-
URI formats are not supported
-
The given path’s format is not supported.
There is a question some similar but is not answered.
I want copy from a directory that is in server1 to another server and the urls are http
Thanks
you can use File.Copy only if we are not talking about an FTP. in that case you can use the code below
if you have an FTP you can use the below code:
then you can do
if we are talking about a shared folder on the same network you can do the below:
for HTTP you can use the below:
source:
Send a file via HTTP POST with C#