Can I use API to move a file from a local computer to a remote computer in a LAN environment?

Please help... Thanks