Recursive Directory Transfer via Windows FTP Script

Posted on 2010-01-07
Last Modified: 2013-12-09
Is there a command to recursively copy the pwd and all it's sub contents in MS-DOS FTP? I need it for use in a script. Here's what I have so far. I get errors when it tries to do each of the directories. I've never used command line FTP, so please bear with me.

lcd F:\
mput "*.*"
Question by:Cmerf486
    LVL 51

    Accepted Solution

    The FTP client program that is built into Windows and available at the command line does not support the transfer of subfolders with a single command.  Typically people TAR or ZIP up all the files before the transfer, then do the FTP transfer then expand.  The other alternative is to switch to a different FTP client that does support recursive folder xfers, there are some of those I believe.  Lastly, depending on what you are doing, there are some good "sync" type utilities that can in effect compare a local directory structure with a remote one and make them a mirror of each other, etc.


    Author Comment

    Ah, we do have WinRAR on the machine and that seems to work beautifully! Thank you!
    LVL 51

    Expert Comment

    by:Bill Prew
    Excellent, glad that got you to a working solution.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    731 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