ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Automated regular downloads? (https://www.scoobynet.com/computer-and-technology-related-34/245927-automated-regular-downloads.html)

snowcrash 09 January 2003 08:05 PM

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]

djuk 01 September 2003 07:18 PM

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?

Mr.Cookie 01 September 2003 07:45 PM

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

djuk 01 September 2003 08:10 PM

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?

dsmith 02 September 2003 08:58 AM

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)

djuk 02 September 2003 09:01 AM

You're a star :D


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


© 2024 MH Sub I, LLC dba Internet Brands