How to copy a file from one server to another (in the same network)

How to copy a file in one server to another (which are in the same network.
I tried by using Copy file activity of Uipath, with filepath = New Uri(“file://XxxxxxYYYzZZZ/Users/user.admin/Documents/sample”).LocalPath

but it is showing access denied.

Could you please help.

i guess you will need first to copy this remote file to local disk, then copy from local to the other server, and finally delete from local.

Hi @MariaJosephina

Did you get any solution for this?
I am facing similar issue when trying to copying files from one network location to another.