none
how to copy a folder via windows ftp command-line ?

    Question

  • hi all

    how to copy a folder via windows ftp command-line  from ftp client to ftp server or vice versa?

    ( i think this is a limitation and windows ftp command can only transfer files and not folders

    • Changed type john.s2011 Thursday, January 05, 2012 8:06 PM
    Thursday, January 05, 2012 1:49 PM

Answers

  • You can create the folder with a mkdir, then copy all files using mget. You can get around it using an FTP client that offers this feature, but it's basically just doing two things in the background - create folder, then copying files.

    In addition to surpavan's link, here is a list of the commands.

    List of FTP commands for the Microsoft command-line FTP client
    http://www.nsftools.com/tips/MSFTP.htm 

    Ace

     


    Ace Fekay
    MVP, MCT, MCITP Enterprise Administrator, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php

    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    FaceBook Twitter LinkedIn
    • Marked as answer by john.s2011 Thursday, January 05, 2012 8:09 PM
    Thursday, January 05, 2012 6:43 PM

All replies

  • FTP is only for file transfer, you do it from powershell or from cmd, it will only do per file.

    You can user powershell to automate download for all file in the given folder.  You can get such resources from net.  I found this might interest you http://www.unix.com/unix-advanced-expert-users/56669-how-ftp-folder-possible.html .

     

    Thursday, January 05, 2012 6:25 PM
  • You can create the folder with a mkdir, then copy all files using mget. You can get around it using an FTP client that offers this feature, but it's basically just doing two things in the background - create folder, then copying files.

    In addition to surpavan's link, here is a list of the commands.

    List of FTP commands for the Microsoft command-line FTP client
    http://www.nsftools.com/tips/MSFTP.htm 

    Ace

     


    Ace Fekay
    MVP, MCT, MCITP Enterprise Administrator, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php

    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    FaceBook Twitter LinkedIn
    • Marked as answer by john.s2011 Thursday, January 05, 2012 8:09 PM
    Thursday, January 05, 2012 6:43 PM
  • And John, you should change this thread to a "Question," since after all it's a question, not a discussion.

    Ace Fekay
    MVP, MCT, MCITP Enterprise Administrator, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php

    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    FaceBook Twitter LinkedIn
    Thursday, January 05, 2012 6:44 PM