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?

[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.

DanNetwork EngineerAuthor Commented:
I guess I should figure it out from their own website, unless there's an easier way to do this.
NVITEnd-user supportCommented:
Using winscp with task scheduler will work.

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.)
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

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.
DanNetwork EngineerAuthor Commented:
it's FTP with explicit TLS, so that makes it a bit trickier
Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
WinSCP it is then.  :-)  And you have the manual already.
DanNetwork EngineerAuthor Commented:
so on winscop documentation lists:

open s -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?
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:


@echo off
"C:\Program Files (x86)\WinSCP\winscp.exe" /script=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
# Upload file
put z:\hof01.mp4 /home/events/hof
# Disconnect

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?
NVITEnd-user supportCommented:
Do the steps manually, which helps isolate the issue.
NVITEnd-user supportCommented:
> 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, Modifying the script automatically
Bill PrewIT / Software Engineering ConsultantCommented:
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.

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

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

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