The FileZilla client does not support any kind of automation.
Though you can use WinSCP to easily script your FileZilla sites.
- Importing FileZilla Site
- Directly Referring to FileZilla Site in Script
- Automating File Transfers
- Further reading
Importing FileZilla Site
Use the Import Sites command to import your FileZilla site to WinSCP.
Once the site is imported, use the Generate Session URL/Code command to generate a script or a .NET assembly code (C#, VB.NET or PowerShell) for the site.
Directly Referring to FileZilla Site in Script
Alternatively, you can directly refer to the FileZilla site from the WinSCP script, if you want to maintain a possibility to manage the site settings from FileZilla.
-filezilla switch of the
# Open FileZilla site open -filezilla "My Site" # Change the remote directory # Upload the file to user's home directory put d:\examplefile.txt /home/user
This is not recommended though as you rely on a configuration stored in your Windows account profile. For this reason the script is not portable.
Automating File Transfers
Once you have a connection established, you can follow a generic guide to automating file transfers with WinSCP.
Or you can even have WinSCP generate a full file transfer script or code for you.
- Scripting documentation;
- Example scripts;
- Guide to advanced scripting;
- WinSCP .NET assembly;
- Example .NET assembly code;
- Schedule file transfers or synchronization.