Check for and download updated file - Example - FileZilla

Posted on
10,102 Points
1 Endorsement
Last Modified:
Experience Level: Intermediate
Joe Winograd
50+ years in computer industry •Everything from development to sales •CIO •Windows •Document Imaging •EE MVE 2015,2016,2018 •EE FELLOW 2017
In a question here at Experts Exchange, a member posted this requirement:
Script to Download a File Daily if file changes or updates.
Through an exchange of posts, we clarified the requirements and decided to use the latest version of the popular FileZilla product as the test case. The solution that I present in this video Micro Tutorial is specific to FileZilla, but with minor tweaking, the method will work for other products at other sites.

I wrote the script in the AutoHotkey scripting language. If you are not familiar with it, this Experts Exchange article will get you going on it:

AutoHotkey - Getting Started

The video and the script do not address the issue of daily checking. This is easily achieved by running the script as a task in the Windows Task Scheduler, with a Trigger set for every day (or whatever frequency you want). If you are not familiar with the Task Scheduler, this EE article will get you started on it:

How to use the Windows Task Scheduler - An Introduction

Video Steps

1. Download and install AutoHotkey

Read this Experts Exchange article:
AutoHotkey - Getting Started

2. Download the DownloadLatestFileZilla script

Download the plain text DownloadLatestFileZilla.ahk file attached to this Step.

Use a text editor to change the DownloadFolder:="X:\FileZilla\" assignment statement to have the location that you want.


3. Run the DownloadLatestFileZilla script

In Windows/File Explorer (or whatever file manager you use), double-click the DownloadLatestFileZilla.ahk file to run it.

The above works because a standard installation of AutoHotkey (done in Step 1) associates the .AHK file extension with the AutoHotkey program.

4. Confirm that the latest FileZilla version was downloaded

The first time you run the script it will download the latest FileZilla version to the folder that you specified in Step 2.

Confirm that the download occurred.

5. Run the DownloadLatestFileZilla script again

The second time that you run the script (assuming that there has not been a new release of FileZilla in the interim), the script should detect that the latest version has already been downloaded.

Confirm that this happens.

That's it! If you find this video to be helpful, please click the thumbs-up icon above. Thank you for watching!

Featured Post

Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

In this article, will demonstrate how to deploy standalone RD gateway server on 2012 R2 server without deploying RDS infrastructure. RD Gateway is a built-in windows server role and allows RDP to internal servers from the internet through the Https …
Many programming languages have a Switch–Case capability. Since its first beta in 2003, AutoHotkey has not had one. Finally, in the recent 28-Sep-2019 release of Version, it now has Switch–Case. This article discusses it and shows a sample…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month