home  | what's new  | site map  | kudos  | links  | legal  | about | |
Advertising & Marketing  | Adware, Badware & Spyware  | Help & How To's |
Milly's Suspend Hosts Batch File | Mike's Suspend Hosts From Netscape Toolbar |
Milly's HostSusp.bat - Temporarily Suspend Hosts File "I use a batch file (culled from a more extensive hosts batch file utility produced by Bruce. Save what's between the lines as HostSusp.bat and put a shortcut to it somewhere convenient."
|
----------------------- begin ----------------------- @echo off c: cd \windows cls if not exist hosts echo Sorry, HOSTS file not found by utility! if exist hosts copy hosts hosts.ugh if exist hosts.dis del hosts.dis ren hosts hosts.dis echo. echo =============================== echo backup called hosts.ugh created echo - echo HOSTS has been disabled! echo =============================== echo. echo Continuing will Re-enable :- echo. pause ren hosts.dis hosts cls echo. :end echo. ------------------------ end ------------------------
Mike C.'s Suspend Hosts From Netscape 4x Personal Toolbar "This method can be used to provide personal toolbar shortcuts to any executable file. Credit for the above goes to Bruce (of this NG) for his batch file method to enable/disable hosts." Thanks also go to Peta for corrections to batch file syntax. This tip requires Netscape version 4x.
1. Create two batch files in Notepad. Watch out for word wrap when you copy these files. Each should contain ONLY 2 lines -- the first line begins with '@' and the second begins with 'if':
2. Now, in Netscape, you will create TWO NEW FILE TYPES and define their actions. The new file types must have unique file extensions. They can't be file extensions already in use and they shouldn't be file extensions that might (in the future) be claimed by another application. I've suggested '.dis' file extensions in my instructions below. You don't have to use mine if you don't want to -- just be sure that whatever you choose is and will likely remain unique:
3. Now create two new files in Notepad and save them with your new filetype extensions. Place a single line of text in each of the files -- the text is unimportant -- you just don't want them saved as 0 byte files. My files have 'Hello World!!' for their contents. You can insert anything you wish in yours. Save both files to your Windows directory. Save the first as hosts_off.hstof and the second as hosts_on.hston. 4. Now create two Netscape shortcuts to the two new files (the '.hstof' and '.hston' files). In Netscape select Bookmarks | Edit Bookmarks. Rightclick on 'Personal Toolbar Folder' and select 'New Bookmark.'
Finished.
Updated: Aug 02-00 |
With WebWasher activated, many links on these pages will not display. Please see About page for fix.
This site uses no cookies or other tracking methods, no scripts and no active content. It looks better in IE than in Netscape.
Please send comments, corrections, suggestions, & new info to [email protected].