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 09 January 2003, 08:05 PM
  #1  
snowcrash
Scooby Regular
Thread Starter
 
snowcrash's Avatar
 
Join Date: Mar 2002
Location: www.scoobyzone.co.uk
Posts: 2,082
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 01 September 2003, 07:18 PM
  #2  
djuk
Scooby Regular
 
djuk's Avatar
 
Join Date: Jun 2002
Location: Berkshire
Posts: 1,280
Likes: 0
Received 0 Likes on 0 Posts
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?
Old 01 September 2003, 07:45 PM
  #3  
Mr.Cookie
Scooby Regular
 
Mr.Cookie's Avatar
 
Join Date: Apr 2000
Location: www.mrcookie.co.uk
Posts: 5,757
Likes: 0
Received 0 Likes on 0 Posts
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
Old 01 September 2003, 08:10 PM
  #4  
djuk
Scooby Regular
 
djuk's Avatar
 
Join Date: Jun 2002
Location: Berkshire
Posts: 1,280
Likes: 0
Received 0 Likes on 0 Posts
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?
Old 02 September 2003, 08:58 AM
  #5  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
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)
Old 02 September 2003, 09:01 AM
  #6  
djuk
Scooby Regular
 
djuk's Avatar
 
Join Date: Jun 2002
Location: Berkshire
Posts: 1,280
Likes: 0
Received 0 Likes on 0 Posts
Cool

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



Quick Reply: Automated regular downloads?



All times are GMT +1. The time now is 12:00 PM.