Saturday, 2 July 2011

Countdown timer for shutdown computer

Many a times people like to sleep on music, but the problem is that the comp will continue running the whole night. Here is how you can create a countdown timer to shutdown your comp in your specified time.

Go to run in start menu and input this command

 shutdown -s -t 3600


this will create a countdown timer which will go off in 3600 seconds (1 Hour). you can replace the 3600 to any time limit you want the comp to shutdown ,but remember the time should always be expressed in seconds i.e if u want the comp to shutdown in Half an hour you have to write 1800 and so on...

If you are as lazy as me and don't want to input the command each time, then create a batch file or shortcut

Batch:
open a notepad and type

shutdown -s -t 3600

now in the files menu select "save as" and save this file as Activate.bat

Just double clicking this file will activate your timer

Shortcut:
On the desktop right click and create a new shortcut. in the location type

shutdown -s -t 3600


Give it any name like "Activate timer"
Again, double clicking this newly created shortcut will do the same.

FORCING THE SHUTDOWN:

another operator that you can use with this command is -f . this will force a shutdown on system. suppose you want the comp to shutdown as quickly as possible you can give command

shutdown -s -f -t 00


here we have used a -f operator and the delay is set to 0 seconds.

(as we are talking about quick shutdown, u can use command
c:windowssystem32tsshutdn.exe 00 /POWERDOWN /DELAY:00 also)

STOPPING THE TIMER:
Any time when you want to stop the running timer use a -a operator(standing for abort)

the command is

shutdown -a

You can use it in any way u prefer, like direct input in run (or command prompt) , create a .bat file or create a shortcut on desktop

SOME OTHER OPTIONS:

shutdown -r (restarting)
shutdown -r -t 3600 (timer for restarting in 1 hour)
shutdown -r -f -t 00 (quick reboot)

Friday, 1 July 2011

10 Great NotePad Tricks To Scare Your Friends

Most of you must be aware about a tool called notepad. It is a simple text based editor. But today I am going to discuss some cool tricks which you can perform on your computer using notepad. You can also use these tricks to scare your friends.




1.Cycle a message in your friend’s computer.
Type :
@ECHO off
:Begin
msg * Hi
msg * Are you having fun?
msg * I am!
msg * Lets have fun together!
msg * Because you have been o-w-n-e-d
GOTO BEGIN
Save it and...
as pc.bat and send it to your friends.

2.Make Keyboard Keys Type Continuously:
Type :
MsgBox “stop me..! if you can”
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{bs}”
loop
Save it as pc.vbs and send it to your friends.

3.Convey your friend a message and shut down his/ her computer.
Type :
@echo off
msg * I don’t like you
shutdown -c “Hahahah You are Doomed” -s
Save it as pc.bat and send it to your friends.

4.Toggle your friend’s Caps Lock button simultaneously
Type :
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop
Save it as pc.vbs and send it to your friends.

5.Frustrate your friend by making their keyboard hit Enter simultaneously whenever they press a key :
Type :
Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “~(enter)”
loop
Save it as pc.vbs and send it to your friends.

6.Hack your friend’s keyboard and make him type “You are a fool” simultaneously:
Type :
Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “You are a fool.”
loop
Save it as pc.vbs and send it to your friends.

7.Open Notepad, slowly type anythingand freak your friends out:
Type :
WScript.Sleep 180000
WScript.Sleep 10000
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run “notepad”
WScript.Sleep 100
WshShell.AppActivate “Notepad”
WScript.Sleep 500
WshShell.SendKeys “Hel”
WScript.Sleep 500
WshShell.SendKeys “lo “
WScript.Sleep 500
WshShell.SendKeys “, ho”
WScript.Sleep 500
WshShell.SendKeys “w a”
WScript.Sleep 500
WshShell.SendKeys “re “
WScript.Sleep 500
WshShell.SendKeys “you”
WScript.Sleep 500
WshShell.SendKeys “? “
WScript.Sleep 500
WshShell.SendKeys “I a”
WScript.Sleep 500
WshShell.SendKeys “m g”
WScript.Sleep 500
WshShell.SendKeys “ood”
WScript.Sleep 500
WshShell.SendKeys ” th”
WScript.Sleep 500
WshShell.SendKeys “ank”
WScript.Sleep 500
WshShell.SendKeys “s! “
Save it as pc.vbs and send it to your friends.

8.Frustrate your friend by making their keyboard hit Backspace simultaneously whenever they press a key :
Type :
MsgBox “Let’s rock and roll”
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{bs}”
loop
Save it as pc.vbs and send it to your friends.

9.Open Notepad continuously in your friend’s computer:
Type :
@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top
Save it as pc.bat and send it.

10.Continuously pop out your friend’s CD or DVD Drive.
Type :
Set oWMP = CreateObject(“WMPlayer.OCX.7″)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop
Save it as pc.vbs and send it to your friends.