Windows Script to FTP Folder contents and delete files upon successful transfer

Posted on 2009-12-17
Last Modified: 2013-12-09
I need a script that monitors a local windows directory and FTPs all .mov files that are in the directory.  Once a file has successfully been transferred to the FTP server the file needs to be deleted from the local directory.  If the file does not transfer successfully the transfer should be attempted again on the next pass.  The script could be executed on a time basis (Scheduler) or monitor the local directory for changes.
Question by:YelloWheels
    1 Comment
    LVL 51

    Accepted Solution

    I think you are going to want to leverage some utility to do this, not brute force it in a script.  If you want to do some scripting but not get too dirty with the FTP part check out the following free tool.  NCFTPPUT could do a good bit of this for you.

    If you really want to "monitor" and send changes to the server, then I'd suggest looking into a third party tool that supports those types of activities.  Here are a couple of suggestions.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
    Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now