• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Win7: Change Host file from Dos window?

JEDI

Lifer
my host file has ad blockers but sometimes i need to temporarily disable it to get cashback from ordering from websites.

in WinXP, i had a simple .bat to rename the host file. then another simple .bat file to name it back.

but in Win7 it says Access is denied.

I am logged in as Admin.
i had to open Windows Explorer and click directories all the way down to get to the Host file in drivers/etc.

how can i make my .bat file work in Win7?
 
haven't tried it, but give is a go:

give "everyone" permission on the file to "full control"

Edit,

ofc, the file that needs the permission modified is the hosts file, and not the bat file.
 
haven't tried it, but give is a go:

give "everyone" permission on the file to "full control"

Edit,

ofc, the file that needs the permission modified is the hosts file, and not the bat file.

Since he's doing renames the object that needs permission is the parent directory, not the file itself.
 
how can i make my .bat file work in Win7?

Right-click on it and run as Administrator. Alternatively, you should be able to set a compatibility flag in the .bat file's properties that will automatically request privilege elevation.

haven't tried it, but give is a go:

give "everyone" permission on the file to "full control"

Edit,

ofc, the file that needs the permission modified is the hosts file, and not the bat file.

Please don't do this.
 
Use a better browser with an ad-block extension that can be easily toggled on and off?

I have to agree. The HOSTS file is kind of a poor man's DNS, and it's an extremely clumsy and ineffectual tool for blocking ads. On an Android device you can at least argue that it is very battery friendly, but on a computer capable of running Windows you don't even have that somewhat flimsy excuse.
 
which broswer? chrome?

Firefox and Adblock Plus is the best solution from a technical standpoint. The Gecko rendering engine can literally be interrupted by extensions, so AdBlock Plus can literally prevent the browser from even downloading ads. The extension can also alter the layout of the page, to let you reclaim the space used by the ads. So they aren't just hidden, it's as if they never even existed.

Chrome has a version of AdBlock Plus, but it's rather neutered in comparison because extensions cannot interact with the rendering engine in the same way they can on Firefox. Generally the page is downloaded, rendered, and then filtered through the extension. So you might see the page with ads, then it flashes and reloads without the ads. Supposedly Google was very interested in having a version of NoScript for Chrome way back when, but so far Google hasn't really made any serious efforts to add the needed functionality. The same basic functionality needed for AdBlock Plus to work most efficiently.
 
which broswer? chrome?

I personally use Chrome with Ad-block simply because I like it better. But the issues that cl-scott mention are something you should consider. Where the FF extension will block the entire request to an ad, Chrome's Ad-block will download and remove it after the fact.
 
Back
Top