James presented the following explanation :
It seems as if I'm making Microsoft do more than it's made to do
Not at all - I did something similar a couple of years back.
Using the datestamp as part of the zipped file is optional - use it if
you need some sort of historical data (and if there are no problems
with disk quota/space at both systems).
See if the examples below makes any sense.
(In batch scripts, I'm always using variables to define file locations
- it makes things easier if they to be changed later on.)
---At the remote end, a bat file could look like this:
set zippgm="%PROGRAMFILES%\WinZip\WinZip32.exe"
set zipfname="C:\ftproot\james\DataFiles%DATE:~0,2%.zip"
set datfiles="C:\DataFiles\*.*"
%zippgm% -a -p -r %zipfname% %datfiles%
---At your end:
set ftpcmd=C:\DataFiles\getdata.ftp
set zipfname=DataFiles%DATE:~0,2%.zip
echo ftp.remotesite.com >%ftpcmd%
echo username >>%ftpcmd%
echo password >>%ftpcmd%
echo bin >>%ftpcmd%
echo cd james >>%ftpcmd%
echo get %zipfname% >>%ftpcmd%
echo bye >>%ftpcmd%
ftp -s:%ftpcmd%