Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

FTP File Transfer


mowens
 Share

Recommended Posts

My post outputs 2 files, both .ANC files (same as .nc). One is the program and one is just a tool list. Our vendor's machine can't have them in one program. Most of the files are proven, but we still have engineering changes that affect the vendor parts. I'm not always the one doing the posting and I see a real danger of forgetting to upload them after posting.

 

Some of the folders have 120 files in them, so I would rather not upload all of them at one time, unless I have to.

 

I realize with my limited computing skills this may be a pipe dream, but I thought I would ask.

Link to comment
Share on other sites

I know FTP is drag and drop, and is easy to do; my concern, and it's really not that big of one, is that someone will do their changes, post the file and forget the drag and drop. Kind of like setting the time on your alarm clock but forgetting to turn it on (I hope I'm not the only one who's done that). Matt, I would also be interested in your program.

Link to comment
Share on other sites

With some clever scripting (and assuming you don't post in a weird way and you're NOT using X), then you could easily write a Mastercam VBS script to:

 

[*]post your file

[*]grab the location of your G-Code file

[*]generate a cmdfile.txt file to that contains login and upload commands

[*]execute the command-line FTP client that's included with Windows and pass it the cmdfile.txt that the script generated

A cmdfile.txt generated by your script might look like this:

 


open 192.168.1.10

your_username

your_password

cd programs

put 1234.nc

 

And when you have the script run the FTP client, you'd shell it out with a command-line string like this:

 

code:

Dim strFTP

 

 

strFTP = "ftp -s: C:pathtoyourcmdfile.txt"

 

Call ShellAndWait(strFTP, True)

Otherwise, this can be done via a custom C-Hook or Nethook without needing the command-line FTP client.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...