SharedTutor | Tutorials For Everyone

Find your interesting tutorials in SharedTutor.com. Get your tutorial about Computer, Blogging, Makemoneyonline, Games, Design, and more!

How Fast Does Your PC Restart

http://www.codejacked.com/wp-content/uploads/2007/08/warm_boot_xp.jpg

If you want to know truly how fast your pc restarts you can do one of two things


1. Download this Script

Download Links:



http://hotfile.com/dl/45161297/027a896/PC_Restart_Time.vbs.html
or
http://rapidshare.com/files/392395391/PC_Restart_Time.vbs
or
http://www.megaupload.com/?d=LHBDINC0

2. Copy and Paste this into Notepad then save it as whatever.vbs

- Then double click the vbs file and click ok and; pc will restart and; once logged in and booted back up it will display your restart time.

Code:

Option Explicit
On Error Resume Next
Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff
MsgA = "Please close all running applications and click on OK."
KeyA = "HKEY_CURRENT_USER\Software\RestartTime\"
KeyB = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime"
AppName = "How Fast Does Your Windows 7 Restart"
Set Wsh = CreateObject("WScript.Shell")
PathFile = """" & WScript.ScriptFullName & """"
Result = wsh.RegRead(KeyA & "Times")
if Result = "" then
MsgResult = Msgbox (MsgA, vbOKCancel, AppName)
If MsgResult = vbcancel then WScript.Quit
Wsh.RegWrite KeyA & "Times", left(Time,8), "REG_SZ"
Wsh.RegWrite KeyB, PathFile, "REG_SZ"
Wsh.Run "cmd /c Shutdown -r -t 00", false, 0
else
Wsh.RegDelete KeyA & "Times"
Wsh.RegDelete KeyA
Wsh.RegDelete KeyB
TimeDiff = DateDiff("s",Result,left(Time,8))
MsgBox "Your computer restarts in " & TimeDiff & " seconds", VbInformation, AppName
end if
wscript.Quit

NOTE: This Script will work on 7, XP and Vista. Also you can change this line AppName = "How Fast Does Your Windows 7 Restart" to say whatever you want. Have some fun with it if you like.

Here is my restart time. I have Ctrl+Alt+Del option enabled and strong password so this slows me down a bit

No comments

Post a Comment