Would you like to learn how to transfer FTP files using a script? In this tutorial, we are going to show you how to transfer files using an FTP connection and a script file on Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial Windows - Upload FTP files using a script

Start a command-line prompt.

Windows - Command-line prompt

Create the FTP script.

Copy to Clipboard

Edit the FTP script.

Copy to Clipboard

Here is the FTP script content.

Copy to Clipboard

Start the FTP transfer using the script.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, an HTML file named TEST was uploaded using an FTP script.

Tutorial Windows - Download FTP files using a script

Start a command-line prompt.

Windows - Command-line prompt

Create the FTP script.

Copy to Clipboard

Edit the FTP script.

Copy to Clipboard

Here is the FTP script content.

Copy to Clipboard

Start the FTP download using the script.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, multiple files were downloaded using an FTP script.