• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1059
  • Last Modified:

Recursive Directory Transfer via Windows FTP Script

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.

open 192.168.101.3
USER
PASSWORD
lcd F:\
binary
mput "*.*"
disconnect
bye
0
Cmerf486
Asked:
Cmerf486
  • 2
1 Solution
 
Bill PrewCommented:
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.

~bp
0
 
Cmerf486Author Commented:
Ah, we do have WinRAR on the machine and that seems to work beautifully! Thank you!
0
 
Bill PrewCommented:
Excellent, glad that got you to a working solution.

~bp
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now