Copying Files between Local and Remote Systems
There are many applications that can make use of being able to programmatically copy files to remote machines—in this case, moving a folder of files matching a pattern to a remote system.
Use RemoteFile with CopyFile to copy a single file between machines.
Copy all files in a folder. First, get the local files.
Construct the remote file names.
Create the remote folder.
Set the authentication information used during copying files.
Copy the files.