How to upload recursively with cmdline ftp "mput" a whole directory tree?

P

Peter Hanke

I want to upload from my local computer a whole directory tree to a remote ftp server.
So far I used:

ftp -s:myscript.ftp

with myscript.ftp:
-----------------
open ftp.myserver.com
<accountname>
<passwd>
pwd
mkdir pictures
cd pictures
binary
prompt
mput C:\localdir\*.jpg
--------

Unfortunately the script above only uploads the picturs in the uppermost directory and not in the subfolders.
How can recurse into all tree levels and "clone" FROM CMDLINE the local tree to remote computer?

Peter
 
B

Barry Schwarz

I want to upload from my local computer a whole directory tree to a remote ftp server.
So far I used:

ftp -s:myscript.ftp

with myscript.ftp:
-----------------
open ftp.myserver.com
<accountname>
<passwd>
pwd
mkdir pictures
cd pictures
binary
prompt
mput C:\localdir\*.jpg

Check to see if FileZilla has a command line interface.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top