curl-users
RE: ftp upload batch
From: Stenberg Björn <Bjorn.Stenberg_at_elema.siemens.se>
Date: Fri, 19 Jan 2001 15:43:30 +0100
Date: Fri, 19 Jan 2001 15:43:30 +0100
> > #!/bin/sh
> > for file * dir2/*; do
> > curl -T $file ftp://uploadsite.com/directory/$file
> > done
> How should I write the script in a DOS batch file?
I don't know about "real" DOS, but on NT (and I think Win9X) you can do
this:
for %f in ( *, dir2\* ) do @curl -T %f ftp://uploadsite.com/directory/%f
/Björn
Received on 2001-01-19