Copying local files to remote disk

Hello,

I’m wondering if it’s possible to copy local files to a remote drive
such as a shared smb or afp drive using the regular File, Dir or
FileUtils routines? Are there any examples or anything out there, i
have not found anything and would rather not revert to running shell
scripts.

thx

AC