FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Check your Windows boot time





badai
found this while searching on how to make my windows boot faster. sorry, can't give the url, against frihost rules.

Quote:


  1. Open Notepad and copy everything in the code box below and paste it in Notepad.
    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 = "[GeekPolice] Reboot Time"
    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

  2. Save the file as reboot.vbs on anywhere, your desktop for example. You can choose to save the file as any name you want, just make sure the file ends with a .vbs extension.
  3. Double click on the script file you saved.
  4. Close all the running applications and click the OK button in the dialog box.
  5. The computer will reboot and when Windows load, a dialog box will open displaying the time your computer took to reboot.


of course this is reboot time, not boot time. but boot means everything finish loading from the time you push the ON button, and this script display the dialog box before everything finish loading, so there a some "minus time". but since the script start before your computer shutdown and take some times to close/stop everything, that is the "plus time". so roughly you can take its words.

by the way, this is mine:



now i know what they mean when they said 1 minute commercial is too long.
sobolok
You can use de start menu > run and write:

shutdown -s -t "60", where 60 is the time to shutdown in seconds

by the way you can use: shutdown -r -t "60", to restart the computer.

To cancel the operation, write:

shutdown -a
weableandbob
That's a cool little trick, but what's the problem with just running a timer if you want to know more accurately?
Fire Boar
sobolok wrote:
You can use de start menu > run and write:

shutdown -s -t "60", where 60 is the time to shutdown in seconds

by the way you can use: shutdown -r -t "60", to restart the computer.

To cancel the operation, write:

shutdown -a


That's a different trick: the one in the original post measures how long it takes to reboot. This simply performs a delayed shutdown.
debjitbiswas
Well thanks to sharing it with us.
well its a good one i know the dos things.
Flakky
@badai: Cool trick. I got 59 seconds on my machine. I tweaked a lot and did not use Aero. Many services were disabled. I used Tuneup for this Smile
Related topics
Booting Linux using Windows boot loader
switching between GRUB and windows boot manager
IRam Boosts Windows Boot
Repair windows Xp with the Recovery Console
Extending Windows Boot Partition
Windows Tips&tricks!
Won't go into windows
possible dual boot?
[var]APPLE INCORPORA OFICIALMENTE SOPORTE XA WINDOWS ..
problem from NTFS resizing
To share files on a Windows XP and a Mac OS X
Windows XP slow startup
dual-boot OS with two different HDD. How can I do it?
Change default booting from Linux to Windows XP
Reply to topic    Frihost Forum Index -> Computers -> Operating Systems

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.