Showing posts with label pc tips. Show all posts
Showing posts with label pc tips. Show all posts

Saturday, 26 November 2011

Block A Website Address From Opening In Windows



This trick will be helpful for those who want to block access to particular websites on their system.  Parents can block certain websites from their younger ones. It can also be used in schools and colleges etc….
Well this trick is very simple and it goes this way.
1. Open MyComputer
2. Browse C:   (or your Operating system drive)
3. Browse Windows –>System32–>drivers–>etc
so the Location will be C:\WINDOWS\system32\drivers\etc
In the etc folder look for the file hosts
4. Open this file hosts with notepad.
5.  Locate the line 127.0.0.1 localhost
6. To block www.google.com for example, just add this text under
127.0.0.1  localhost:
127.0.0.1 www.google.com
127.0.0.1 www.yahoo.com
7. Save the file.
In this way add any number of sites you want,  however you will need to prefix it with “127.0.0.1″.
Note:  This blocks the website from opening in any browser whether it is Mozilla Firefox or Internet Explorer


Notepad Trick To Open Notepad Continuously



This simple computer prank consists of a code below that will drive your friend crazy as it opens notepad continuously.
When you type the below code and rename it as *.bat it take the above showed icon shape.
To Open Notepad continuously in your friend’s computer:
Type the code in notepad as :

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top
Save it as “notepad.BAT” and send it.
Note: If you want to try it, then go ahead and when you built this file double click to open it. But beware it slows your system and you will be left with no other option than to restart, as this script opens 100’s of notepad window. So, If you want to try this than save all your work and then run this file.


Shutdown Computer With Command Prompt Or Shortcut For Shutdown

Here is a trick to shutdown your computer  at a specific time. You might be thinking what great about it, well you can shutdown your computer without the use of any software. Just shutdown your computer at specific time from RUN Command. For example if you wish to shutdown at 09:45 am. Type this in
Start=>Run
Type Code:        at 11:35 shutdown -s
To cancel or Abort the shutdown:
Type Code:                   shutdown -a
Type  Code:  “shutdown –s –m\\computername –t60”. This command will shutdown the computer on network if you have administrative access.  Here computername needs to be replaced by the exact computer name of the computer on the network to work.
Alternative method to create a shutdown timer or simply computer shutdown shortcut
Step 1: Right click on your desktop and choose “New=>shortcuts”.
Step 2: In the box that says “Type the location of the shortcut”,
type in “shutdown -s -t 3600” without the quotation marks and click next.
Note: 3600 are the amount of seconds before your computer shuts down. So , this means 3600 seconds = 60 mints (1 hour). You can change the value in the above code. You can even create multiple shutdown shortcuts. For example a computer shutdown shortcut for 30 minutes, 1 hour, 2 hours, 5 hours etc.,
Step 3: Make up a name for the shortcut and you’re done.
Optional Step 4 : You can change the icon by right clicking=>properities=>change icon=>browse
To abort or cancel the shutdown:
To make an abort key to stop the shutdown timer just create another shortcut and make
the “location of the shortcut” to ” shutdown -a” without the quotes.