automate FTP transfer

What is the easiest way to automate an FTP transfer?  For example, I have an .mp4 file that I want to FTP to a location automatically everyday for 10 days, and on the 10th day, there will be 2 transfers that day.  Each day, the file name will be different.

I did some searching, and it doesn't look like filezilla support scripting.  I installed winscp, but I don't know much about scripting, so does anyone know of a free solution to do this, that is easy?

I guess I can also use the task scheduler to schedule the task, but not sure who to script winscp to start with the correct FTP settings.

Any ideas?
DanNetwork EngineerAsked:
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.

DanNetwork EngineerAuthor Commented:
I guess I should figure it out from their own website, unless there's an easier way to do this.

http://winscp.net/eng/docs/guide_automation
0
NVITCommented:
Using winscp with task scheduler will work.
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
Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
Standard FTP?  Windows 7 should have a command-line ftp utility built in, which supports FTP simple scripting.  (And this also works from a .cmd file in task scheduler.)
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

DanNetwork EngineerAuthor Commented:
I actually want this to run on my windows server 2008 R2.  This way, if my PC shuts down or something, I don't have to worry about it.
0
DanNetwork EngineerAuthor Commented:
it's FTP with explicit TLS, so that makes it a bit trickier
0
Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
WinSCP it is then.  :-)  And you have the manual already.
0
DanNetwork EngineerAuthor Commented:
so on winscop documentation lists:

open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"

But how do I find out what the rsa certficiate info is?
0
DanNetwork EngineerAuthor Commented:
I ran the batch script from a cmd line and it's not doing anything.

If anyone is well versed with winscp I would greatly appreciate any help.

Here's what I have:

hofscript.bat

@echo off
"C:\Program Files (x86)\WinSCP\winscp.exe" /script=hofscript.txt


hofscript.txt

# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect to SFTP server using a password
open ftp://user%40domain.org:password%21@ftp.domain.com/
# Upload file
put z:\hof01.mp4 /home/events/hof
# Disconnect
close



I did something wrong, as it's not working.  If anyone knows, I would appreciate it.

I have 10 files I need to upload, 1 per day, and 2 on the last day, so I'm not sure if I have to have 10 different txt documents or somehow if I can add the file names to this one txt file?
0
NVITCommented:
Do the steps manually, which helps isolate the issue.
0
NVITCommented:
> I have 10 files I need to upload, 1 per day, and 2 on the last day, so I'm not sure if I have to have 10 different txt documents or somehow if I can add the file names to this one txt file?

Pass the upload filename as an argument to the .bat file. See http://winscp.net/eng/docs/guide_automation#commands, Modifying the script automatically
0
Bill PrewCommented:
Take a look at NCFTP it's a great tool for simple ftp xfrs, and lends itself very well to,BAT scripts since transfers can be done purely from a command line, no scripting language to learn or use.

http://www.ncftp.com/ncftp/

~bp
0
DanNetwork EngineerAuthor Commented:
I think I found my solution, which is free as well.

http://www.2brightsparks.com/freeware/index.html

You can schedule when to perform the FTP transfers, seems easy to use and free.

Thanks, everyone.
0
DanNetwork EngineerAuthor Commented:
Thanks again.
0
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
File Sharing Software

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.