Automated regular downloads?
#1
Scooby Regular
Thread Starter
Join Date: Mar 2002
Location: www.scoobyzone.co.uk
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts
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]
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]
#2
Scooby Regular
Join Date: Jun 2002
Location: Berkshire
Posts: 1,280
Likes: 0
Received 0 Likes
on
0 Posts
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?
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?
#3
Scooby Regular
Join Date: Apr 2000
Location: www.mrcookie.co.uk
Posts: 5,757
Likes: 0
Received 0 Likes
on
0 Posts
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
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
#4
Scooby Regular
Join Date: Jun 2002
Location: Berkshire
Posts: 1,280
Likes: 0
Received 0 Likes
on
0 Posts
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?
#5
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)
' ##########################################
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)
Thread
Thread Starter
Forum
Replies
Last Post
An0n0m0us
Computer & Technology Related
0
28 September 2015 09:58 PM