nightwolf Posted March 15, 2012 Share Posted March 15, 2012 Ever wanted to know how much time does your computer take to boot? well this is a very easy tutorial explaning one way to find an answer to your question 1- Open Notepad 2- Copy & paste the following code in 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 use the below link: Site: http://www.mediafire.com/ Sharecode: /?31z64wgim7lrhrg [?] Link to comment Share on other sites More sharing options...
Pedrito Posted March 15, 2012 Share Posted March 15, 2012 Very handy! Gracias. :) Link to comment Share on other sites More sharing options...
Frosticles Posted March 15, 2012 Share Posted March 15, 2012 Thanks :) Link to comment Share on other sites More sharing options...
nightwolf Posted March 15, 2012 Author Share Posted March 15, 2012 Yes it is handy sometimes thanks Pedrito, Frosticles :) Link to comment Share on other sites More sharing options...
dcs18 Posted March 20, 2012 Share Posted March 20, 2012 Ah, this is an useful little script that offers great standardization. BTW, noticed that we're running shy at posting our reboot time. Mine returned 61 seconds which I know is not such a great boot time, but considering the rig is over-loaded, guess life will carry on. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.