>> The script ... is using ORexx,
FTR: essentially it's a regular CMD batch file. The only remaining use
of Rexx is the newer Date() BIF, because dates are used as arguments
w.r.t. the EXEs it's launching. I actually could avoid the use of
Rexx.
PULL lastworkingdayofthisweek /* 20120928 */
lastweekguess=Date('B',lastworkingdayofthisweek,'S')-7
lastweekguess=Date('S',lastweekguess,'B')
CALL CharOut '','Last week (<'||lastweekguess||'>)? '
PULL lastweek
IF lastweek='' THEN lastweek=lastweekguess
So typically I just have to press <Enter> to select a date.
> Then why not use RxFTP?
Yet another possibily. I've just looked at it, and its functions seem
to require re-invented wheels regarding management of the files.
Most, if not all, files are updates. Or new. So deleting *MASK* is
fine. Apparently FtpDelete() deletes one file, so a remote driectory
has to be PARSE'd and FtpDelete() has to be used over 600 times.
Another option is to not delete to be updated files. So you just have
to delete a few orphans (file exists on the server, but no longer
locally, e.g. due to an implied rename). This also requires a PARSE'd
remote directory, in order to delete a few files.
Regarding the implied rename: I've seen FtpRename(), but that has no
use in this case. Unless FtpRename() also changes the title of a graph
by modifying the file. The underlying action or event is a rename, but
it's processed as a delete&recreate.
FtpPut() also seems to work with individual files. SysFileTree() would
help, but "mput" is easier (albeit it doesn't preserve the case, the
server support case-sensitivity).
Perhaps RxFTP() still is a candidate, for example when FTP.EXE doesn't
support scripts.
--