找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2958|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows
- @5 w; ]- ~5 d/ i; }- M" C
" |! i' B$ i- G  V" p. @% q& ~Easily mirror http/ftp sites to your local hard drive7 {2 ~9 Y# E9 y% o5 R" l
+ d. W) W2 B: v- w( q* G
I searched for some time for a utility that would let me mirror a remote http site to my hard drive with Windows 95. While there are several utilities to do this, I couldn't find any that I liked. Specifically, I wanted to be able to do it from the command line so that I could call it from a script, and I wanted duplicate files on my local drive for subsequent processing by another application. When I found wget for the unix environment, I decided to port it to Windows.
: |% Z8 ^8 e% E8 `6 n( D  O
* g2 M* d$ m! KThe unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.
! h0 s: q: G( p2 F7 C# o9 `4 j' m' y
. A+ n& j- ?0 nThe most recent version I compiled is wgetwin-1_5_3_1-binary.zip. Version 1.5.3 of wget compiles cleanly for windows. To compile it yourself, you will also need to get wget-1.5.3.tar.gz. This 1.5.3.1 includes some additional changes to allow downloading of URLs that have '?' or '*' in their name. This compile was created on July 1, 1999.
% f6 g1 y7 z; P2 [; Z% }5 ?2 f: d8 l, `0 Y
WGETRC file...
% c6 A. s* y0 c" STo set up a .wgetrc file under windows, you have two choices- I; p; Z+ R9 g3 M6 p4 _

2 Q6 [" e& l. u3 @1 o4 D, ySet an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
8 ]3 y% ~; V- z3 J5 q. |Set an environment variable called "HOME" (if it doesn't already exist) pointing to a directory. Put your wgetrc file in this directory, and call it 'wgetrc'
2 r" I5 j" G9 i9 g( ~2 M. BHeiko Herold has been diligently providing updated wget binaries for the windows platform as changes to the wget source archive are available. You can almost surely find a newer version of wget than I have available here. See http://www.geocities.com/heiko_herold/.
6 J: i- }! Z1 A( b9 S& Z( }, l  ~( `8 k4 _# X7 @
Darko Budor did some work porting 1.4.5 to windows. His page (including a 1.4.5 binary) is at http://diana.zesoi.fer.hr/~dbudor/wget/.: ]- f; t' u" r! _. S0 Z+ y9 z3 L
% `: b2 S& q- F% }* _9 q% o1 Y
Lachlan Cranswick has created a compilation of many wget pages, and some good tips for getting wget working well at http://www.dl.ac.uk/CCP/CCP14/mirror/wget.htm . He actually mirrors all the sites there as well, and he's on the European side of the atlantic." i0 a- l! N6 V
. B$ |+ {* S% {# t
Please don't email me for wget support. Although I've compiled it, I'm only a novice user of it. There is a wget mailing list. It is archived at http://fly.cc.fer.hr/archive/wget. To subscribe to it, send email to wget-subscribe@sunsite.auc.dk with the word subscribe as the subject.8 k1 N5 R5 p& H6 S- `/ i

' O9 _+ @8 |& O- Z. sThis page has been accessed
# d! o% X7 m5 t( \8 Y9 b; V: Ftimes since May 12, 1997.
, g8 \3 I$ A$ b: y! S5 R+ l
( _9 f1 Y8 M6 ]8 m, b! WQuestions / comments / changes? Please contact me at tcharron@interlog.com0 J* ], x% f2 `8 `% g

8 d9 x- m% |  g6 x; j& k
8 [9 w9 u" b8 k' Z7 @; B0 B
/ g, G+ q/ v  l, ]8 a$ n+ T3 b哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|赛格电脑 华强北 电脑城 南山赛格 龙岗电子世界 龙华电脑城 沙井电脑城 松岗电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2025-9-19 06:57 , Processed in 0.108457 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表