Archive

Posts Tagged ‘Upload’

Automate FTP Upload Using Commandline

April 16th, 2009 No comments

Here’s an an example. Consider that you need to automate uploading any file(s) to your site, say prashanthpai.com. You’ll require this if you need to update the same file(s) very frequently.

  1. Open notepad and type the following and save it as “upload.ftp“. You can save it with any name and any extension. Don’t save it as txt file. It works perfectly but others can open and see the ftp username and password easily.

    open prashanthpai.com
    username
    password
    cd public_html/downloads
    put C:MySitego.exe
    bye

    • First line will make connection to ftp server at prashanthpai.com
    • Don’t forget to replace prashanthpai.com with your site name or IP address.
    • Enter you ftp username and password in second and third line respectively.
    • Read more…