Jump to content
xisto Community
Sign in to follow this  
jespert

Auto-upload Files With Filezilla And Autohotkey

Recommended Posts

If your web host only allows FTP access and not shell access then you have to edit files locally and then upload them. If you are debugging your website that means making a lot of changes to a file or files and lots of manual uploads after each change to a file. FileZilla works great to upload and download files to a remote FTP site and it even allows you to set a default editor so you can right click on a remote file and click view/edit. It then downloads the file to a temporary directory and monitors any changes made to the file. When it detects that you have saved the file, it pops up a dialog box asking if you want to upload the file. Instead of having to manually switch to the FileZilla window and click the button to upload, you can automate the process with an AutohotKey script.


Loop{WinWait,File has changedControlClick,Button2,File has changed}

The first time you attempt to upload a file that exists, another window will pop up asking if you want to overwrite the file. I recommend telling it to always overwrite the file so you don't have to be bothered with this window in the future.

This is just one example of using AutoHotkey to make your life easier. Enjoy!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.