PCbanter

PCbanter (http://www.pcbanter.net/index.php)
-   Networking and the Internet with Windows XP (http://www.pcbanter.net/forumdisplay.php?f=37)
-   -   How to upload recursively with cmdline ftp "mput" a whole directory tree? (http://www.pcbanter.net/showthread.php?t=1080294)

Peter Hanke September 11th 10 10:54 AM

How to upload recursively with cmdline ftp "mput" a whole directory tree?
 
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

Barry Schwarz[_2_] September 11th 10 02:25 PM

How to upload recursively with cmdline ftp "mput" a whole directory tree?
 
On 11 Sep 2010 09:54:58 GMT, (Peter Hanke) wrote:

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?


Check to see if FileZilla has a command line interface.

--
Remove del for email


All times are GMT +1. The time now is 06:24 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2006 PCbanter
Comments are property of their posters