TIP: Click on subject to list as thread! ANSI
echo: os2
to: Bat Lang
from: Eddy Thilleman
date: 1999-10-17 11:57:28
subject: WGET153

Hello Bat,

14 Oct 99 15:13, Bat Lang wrote to All:

BL> In trying to understand this pgm, I have not been able to determine
BL> how to tell it a default local destination directory for its
BL> downloads.

   `-P prefix'
   `--directory-prefix=prefix'
          Set directory prefix to prefix. The directory prefix is
          the directory where all other files and subdirectories
          will be saved to, i.e. the top of the retrieval tree. The
          default is `.' (the current directory).

Everything I download with wget goes in the directory c:\www on my system, so
if wget would not be started from within the c:\www directory I would give
wget the command line option '-P c:\www' (ofcourse without the quotes) or
'--directory-prefix=c:\www' (again without quotes) in the wget.cfg file below.

BL> I normally use D:\DOWN\ for ftp clients, but their config
BL> was much clearer than I find in WGET.

D:\DOWN\ looks a directory to me and not a FTP program, a directory has no
config, so I'm not sure what you mean by this.

The wget-1.5.3.text is the doc file, it explains all the options.

My current Wget's configuration file (sometimes I change something if I
discover something how to do something better):
------------------- begin of wget.cfg -------------------
continue = on
convert_links = on
dirstruct = on
exclude_directories = *cgi*
follow_ftp = on
no_parent = on
quota = 1m
reject = *.gz,*.ps
timestamping = on
tries = 5
#verbose = off
-------------------- end of wget.cfg --------------------


------------------- 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 start /win /c /b 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 --------------------

I have posted this and more in the OS2REXX echo a short while ago.

  Greetings   -=Eddy=-        email: eddy.thilleman@net.hcc.nl

... BorgDOS v6.0 - FORMAT C: [Y/y] Resistance is futile.
--- GoldED/2 3.0.1
* Origin: Windows98 is a graphic DOS extender (2:500/143.7)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.