How to move a file from my local machine to a remote machine on my LAN?

I have TV shows recorded OTA and saved on my local machine.  I want to write a VB Script to move finished files to my media server on the same LAN.  I can handle all of the VBS programming, except I don't know how to address the folder on the media server.  The script will run on the local machine.  Some details:

Local machine = "MIKE7" running Windows 10.
Local file is in "D:\Tablo\"

Target machine = "Media_Mike" running Ubuntu 14.04.  I also have a static IP for this machine if that would be better to use.
Target folder = /mnt/media/Media_in
Mike CaldwellConsultant to IP industryAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BullockQA EngineerCommented:
You have to share the folder on the Ubuntu machine so the Windows machine can write to it.
Here are steps to do that with Samba (SMB for Linux):

Access it using a UNC name \\yourubuntu\, or
map the folder to a drive letter, say U:, and use U:\
Mike CaldwellConsultant to IP industryAuthor Commented:
OK, I have Samba installed and set up.  In case someone else reads this, I will post an additional step that was required, apparently for Ubuntu 13 and 14.04:

Fix For Ubuntu 14.04 .. Make sure Samba is not installed. Then open terminal & type "sudo apt-get install gksu"  (Without The Quotes).

Then type gksu-properties

In the dialogue that follows set authentication mode to "sudo" and grab mode to "enable"

Now Install Samba everything should be working & it show up on Unity Bar & Search.

I tried without this and Samba could not be found.  Then I found the above instruction and it is now installed and configured.  Now for the next step!
Mike CaldwellConsultant to IP industryAuthor Commented:
Quick VBS question:  should my address for moving to be

HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Mike CaldwellConsultant to IP industryAuthor Commented:
So, test script should be pretty simple.  Here is what I have tried, and it does not work:

Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "D:\VBS\Test.mp4" , "//FamilyRoom/mnt/media/Media_in/Test.mp4"

I get a run time error "Bad file name or number, Line 2".  FamilyRoom is the machine name.
Mike CaldwellConsultant to IP industryAuthor Commented:
I have clicked through the Files tree and verified that the Media_in folder is shared with wide open permissions and that the case in all names is correct.
Mike CaldwellConsultant to IP industryAuthor Commented:
I also tried the same script using the IP address of the machine.
Mike CaldwellConsultant to IP industryAuthor Commented:
OK, soooo, my slashes were backwards.  Fixed that; no change.
Mark BullockQA EngineerCommented:
You checked the Files tree on your Ubuntu machine?
What happens when you use Windows Explorer to open \\FamilyRoom?
Mike CaldwellConsultant to IP industryAuthor Commented:
It opens, and not just the folder I shared using samba.
Mike CaldwellConsultant to IP industryAuthor Commented:
But I don't want to mount a drive.  I've had too many problems with drives dropping off or not mounting on a reboot, but an address is more faithful.
Mark BullockQA EngineerCommented:
I'm sorry I didn't understand your answer.
What happens when you use Windows Explorer to open \\FamilyRoom? What files do you see?
Mike CaldwellConsultant to IP industryAuthor Commented:
Every folder is available to me, even those that have not been shared using Samba.
Mark BullockQA EngineerCommented:
If you shared the Media_in folder with Samba, the Windows path would be \\FamilyRoom\Media_in.
If you shared the mnt folder, the path would be \\FamilyRoom\mnt\media\Media_in.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.