Page 1 of 7
AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 12:31 pm
by ilboso
Hello everybody!
Since I didn't find anything around, I wrote a little program to automatically download adblock.ini and I want to share it.
Instructions:
- download the attached file update_adblock.zip
- unzip it
- open update_adblock.vbs with your favorite text editor (Notepad works well)
- near the top of the file, modify "source" and "destination" parameters to match your directories
Code: Select all
' -----------------------------------------------------------------------------
' PARAMETERS
' -----------------------------------------------------------------------------
const source = "http://fanboy.co.nz/adblock/iron/adblock.ini"
const destination = "C:\Program Files (x86)\SRWare Iron\adblock.ini"
' -----------------------------------------------------------------------------
- put the file in any directory of your choice
- double click it!
- if it's all ok, you can schedule it with Windows built-in scheduler!
hope it's useful!

Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 1:16 pm
by jerrytouille
This is GREAT!
Is there a way to add a custom list/block of filter texts to the updated adblock.ini automatically?
Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 1:51 pm
by jerrytouille
an error in Win7: "Permission denied"
Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 4:04 pm
by SRWare
jerrytouille wrote:an error in Win7: "Permission denied"
You have to configure the schedule so that it runs as admin, otherwise it can't write to Programs-Folder
Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 4:42 pm
by jerrytouille
SRWare wrote:jerrytouille wrote:an error in Win7: "Permission denied"
You have to configure the schedule so that it runs as admin, otherwise it can't write to Programs-Folder
Actually I tried to test it first by changing the "destination" location and run it, but there is no "Run As Admin" in the right click menu

Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 6:30 pm
by negated
That code needs to be changed to the following for people using a x86 (32-bit) OS:
Code: Select all
' -----------------------------------------------------------------------------
' PARAMETERS
' -----------------------------------------------------------------------------
const source = "http://fanboy.co.nz/adblock/iron/adblock.ini"
const destination = "C:\Program Files\SRWare Iron\adblock.ini"
' -----------------------------------------------------------------------------
ilboso wrote:Hello everybody!
Since I didn't find anything around, I wrote a little program to automatically download adblock.ini and I want to share it.
Instructions:
- download the attached file update_adblock.zip
- unzip it
- open update_adblock.vbs with your favorite text editor (Notepad works well)
- near the top of the file, modify "source" and "destination" parameters to match your directories
Code: Select all
' -----------------------------------------------------------------------------
' PARAMETERS
' -----------------------------------------------------------------------------
const source = "http://fanboy.co.nz/adblock/iron/adblock.ini"
const destination = "C:\Program Files (x86)\SRWare Iron\adblock.ini"
' -----------------------------------------------------------------------------
- put the file in any directory of your choice
- double click it!
- if it's all ok, you can schedule it with Windows built-in scheduler!
hope it's useful!

Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 8:39 pm
by ilboso
jerrytouille wrote:This is GREAT!
Is there a way to add a custom list/block of filter texts to the updated adblock.ini automatically?
Thanks!
uhm... I'm not sure I understood your question...

You want to download more than one file?
Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 8:41 pm
by ilboso
jerrytouille wrote:SRWare wrote:jerrytouille wrote:an error in Win7: "Permission denied"
You have to configure the schedule so that it runs as admin, otherwise it can't write to Programs-Folder
Actually I tried to test it first by changing the "destination" location and run it, but there is no "Run As Admin" in the right click menu

Can you run it with double-click?
If not, try to modify "destination" to a folder you're sure you can write to, maybe your documents folder.

Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 8:43 pm
by ilboso
negated wrote:That code needs to be changed to the following for people using a x86 (32-bit) OS:
Thanks for the explanation!

Re: AdBlock.ini auto updater
Posted: Mon Mar 22, 2010 8:51 pm
by negated
ilboso wrote:negated wrote:That code needs to be changed to the following for people using a x86 (32-bit) OS:
Thanks for the explanation!

Ha, yeah...it's kind of obvious but just wanted to get it out there.
Maybe you can add an if/else in your code that checks for architecture and runs the appropriate line?