Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Automated regular downloads?

Thread Tools
 
Search this Thread
 
Old Jan 9, 2003 | 08:05 PM
  #1  
snowcrash's Avatar
snowcrash
Thread Starter
Scooby Regular
 
Joined: Mar 2002
Posts: 2,082
Likes: 0
From: www.scoobyzone.co.uk
Post

look for wget in google...

you can then setup windows scheduler to run wget at a certain time every day...

[Edited by snowcrash - 9/1/2003 8:06:12 PM]
Reply
Old Sep 1, 2003 | 07:18 PM
  #2  
djuk's Avatar
djuk
Scooby Regular
 
Joined: Jun 2002
Posts: 1,280
Likes: 0
From: Berkshire
Post

Evening all,

I have a text file which is stored on my web server that i want to download every morning. I cannot access it through ftp, only via http. So the log file at http://www.mydomain.com/logs/01Sept.log and i want hopefully to download that file at say 7am every morning and store it locally to hard drive

Does anybody know of any apps which will do this?
Reply
Old Sep 1, 2003 | 07:45 PM
  #3  
Mr.Cookie's Avatar
Mr.Cookie
Scooby Regular
 
Joined: Apr 2000
Posts: 5,757
Likes: 0
From: www.mrcookie.co.uk
Post

DJ

I think most of the download managers will do this getright, dap, net vamp etc.
Windows scheduled tasks will open the file, you need to set the ftp up in network places first, then run schedule to open .log on the ftp in network places.

Si
Reply
Old Sep 1, 2003 | 08:10 PM
  #4  
djuk's Avatar
djuk
Scooby Regular
 
Joined: Jun 2002
Posts: 1,280
Likes: 0
From: Berkshire
Post

Excellent, wget seems to do the job nicely.. Next problem is i can schedule the wget command line through a batch file but obviously the log file name changes every day.. can anyone suggest a way round this?
Reply
Old Sep 2, 2003 | 08:58 AM
  #5  
dsmith's Avatar
dsmith
Scooby Regular
 
Joined: Mar 1999
Posts: 4,518
Likes: 0
Post

1) Copy and paste the following into a text file called. "logfilename.vbs" :-

' ##########################################

dim strMonths(12)

' ##### Base URL for logfiles

strBaseURL="http://www.mydomain.com/logs/"

' ##### Edit Month Names

strMonths(1) = "Jan"
strMonths(2) = "Feb"
strMonths(3) = "Mar"
strMonths(4) = "Apr"
strMonths(5) = "May"
strMonths(6) = "Jun"
strMonths(7) = "July"
strMonths(8) = "Aug"
strMonths(9) = "Sept"
strMonths(10) = "Oct"
strMonths(11) = "Nov"
strMonths(12) = "Dec"

' #############################################

strDay = cstr(DatePart("d",Now))
strMonth = strMonths(DatePart("m",Now))
if len(strDay) = 1 then StrDay = "0" & StrDay
strLog = strBaseUrl & strDay & strMonth & ".log"

wscript.echo strlog

' #############################################

2) Create a btach file (e.g. Downloadlog.cmd) with the following:-

cscript //nologo logfilename.vbs > log.url
wget -i log.url

3) Add the batchfile to the windows scheduler.

Deano
(needs windows scripting istalled which I should imagine it is)
Reply
Old Sep 2, 2003 | 09:01 AM
  #6  
djuk's Avatar
djuk
Scooby Regular
 
Joined: Jun 2002
Posts: 1,280
Likes: 0
From: Berkshire
Cool

You're a star
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
An0n0m0us
Computer & Technology Related
0
Sep 28, 2015 09:58 PM
Nick_Cat
Computer & Technology Related
2
Sep 26, 2015 08:00 AM
Littleted
Computer & Technology Related
4
Sep 25, 2015 09:55 PM
mazbow
ScoobyNet General
2
Sep 15, 2015 06:58 PM




All times are GMT +1. The time now is 02:22 PM.