Hello All,
the for...in...do that calls (in the same session) or starts (in a separate
session) the wgetmir.cmd REXX file in combination with redirection to nul
results in weird behavior (the log file names gets a space in the middle and
the log output of wget is placed in the file with the url's listed). I don't
know why this is, it took some time before I found the solution: leave out the
redirection.
------------------- begin of startwget.cmd -------------------
@echo off
c:
cd \www
call cheap
if not errorlevel 1 exit
if exist wget.ftp call wgetftp
for %%a in (wget*mirror) do call wgetmirror %%a
for %%a in (wget*mir) do call wgetmir %%a
for %%a in (wget*news) do start /win /c /b wgetnews %%a
for %%a in (wget*www) do start /win /c /b wgetwww %%a
for %%a in (wget*x) do start /win /c /b wgetx %%a
exit
-------------------- end of startwget.cmd --------------------
In wgetmir.cmd I use the arg() function instead the arg keyword to get the
filename to prevent the filename is uppercased (parse arg would do too
according to the REXX INF file).
Greetings -=Eddy=- email: eddy.thilleman@net.hcc.nl
... Windows? Honey don't play that!
--- GoldED/2 3.0.1
* Origin: Windows98 is a graphic DOS extender (2:500/143.7)
|