View Single Post
  #1  
Old September 11th 10, 10:54 AM posted to microsoft.public.windowsxp.network_web,microsoft.public.windowsxp.help_and_support
Peter Hanke
external usenet poster
 
Posts: 12
Default 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
Ads