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
LVL 1
Mike CaldwellConsultant to IP industryAsked:
Who is Participating?
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 Engineer IIICommented:
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):
http://www.noobslab.com/2014/02/create-safe-easy-shares-using-samba.html
http://ubuntuhandbook.org/index.php/2014/05/ubuntu1404-file-sharing-samba/

Access it using a UNC name \\yourubuntu\, or
map the folder to a drive letter, say U:, and use U:\
0
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!
0
Mike CaldwellConsultant to IP industryAuthor Commented:
Quick VBS question:  should my address for moving to be

\\tablet\mnt\media\Media_in
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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.
0
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.
0
Mike CaldwellConsultant to IP industryAuthor Commented:
I also tried the same script using the IP address of the machine.
0
Mike CaldwellConsultant to IP industryAuthor Commented:
OK, soooo, my slashes were backwards.  Fixed that; no change.
0
Mark BullockQA Engineer IIICommented:
You checked the Files tree on your Ubuntu machine?
What happens when you use Windows Explorer to open \\FamilyRoom?
0
Mike CaldwellConsultant to IP industryAuthor Commented:
It opens, and not just the folder I shared using samba.
0
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.
0
Mark BullockQA Engineer IIICommented:
I'm sorry I didn't understand your answer.
What happens when you use Windows Explorer to open \\FamilyRoom? What files do you see?
0
Mike CaldwellConsultant to IP industryAuthor Commented:
Every folder is available to me, even those that have not been shared using Samba.
0
Mark BullockQA Engineer IIICommented:
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.
0

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.