You Are Reading

How To Find Your Computer's Boot Time

Geek Tutor ,












Ever wanted to know how much time does your computer take to boot? Is it slow or fast? This tutorial will help answer your question not just in the purpose of just knowing, you can benefit a lot from knowing your computer's boot time how? You can test how much time it takes to boot before and after installing an application such as an antivirus or any other app.

1- Open Notepad
2- Copy & paste the following code into notepad

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 = "Reboot Time Test"
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 reboots in " & TimeDiff & " seconds", VbInformation, AppName
end if
wscript.Quit

3- Save it as anything.vbs (make sure you choose .vbs as extension for your file & don't include spaces if you choose a multiple words name for example if you choose to name it " boot time test ", you should enter boottimetest.vbs NOT boot time test.vbs)
4- In the Save as type choose All Files (Very Important !!)
5- Double-click on the file, you will be asked to save and close all your work because your computer is about to restart. Click Ok to restart
6- When windows starts again a message with the number of seconds your computer took to boot will be displayed on your desktop.

To download a ready-to-use boottimetest.vbs click Here
 
Copyright 2010 Geek Tutor