User Tag List

Results 1 to 1 of 1

Thread: Windows 7 - ReBoot Time [FUN]

  1. #1
    • salmanshah's Gadgets
      • Motherboard:
      • MSI Z97 Gaming 5
      • CPU:
      • i7-4790K - Cooled by Corsair V8 GTS
      • RAM:
      • G.SKILL Trident X Series 2400MHz 32GB (4 x 8GB)
      • Hard Drive:
      • Samsung 850 EVO 250GB SSD (2TB + 3TB HDD)
      • Graphics Card:
      • MSI GTX 970 GAMING 4G
      • Display:
      • Sony KDL-32W654
      • Sound Card:
      • Sound Blaster Z PCIe Gaming Sound Card
      • Speakers/HPs:
      • Sennheiser HD555
      • Keyboard:
      • Thermaltake MEKA G-Unit
      • Mouse:
      • Steelseries Sensei
      • Controller:
      • Microsoft Xbox 360 Wired Controller
      • Power Supply:
      • Corsair TX650w V2
      • UPS:
      • Power Saver 1200va
      • Operating System:
      • Windows 10 PRO Retail key
      • Benchmark Scores:
      • Winrar bench - 11085 KB/s @ OC CPU
      • Comment:
      • Casing: NZXT Phantom 001W
      • ISP:
      • Radiant Telecommunications
      • Download Speed:
      • 6 - 24 Mbps
      • Upload Speed:
      • 6 - 24 Mbps
    salmanshah's Avatar
    Join Date
    May 2009

    Default Windows 7 - ReBoot Time [FUN]

    Hello Everyone,
    Thanks to sidney1st we have a great way to measure the ReBoot-Time (restart time) for our systems.
    You can see how to here:
    click to see details:

    EXAMPLE: ReBoot-Time dialog boxNOTE: This is what you will see after running the VB Script file from below and when you computer finishes restarting.

    Here's How:
    In order to calculate the time of rebooting Windows, we will use a VB Script (Visual BASIC Scripting Edition). Let us learn first how it works.The script writes a value in the registry (HKCU \ Software \ Microsoft \ Current Version \ run) so that it can be started again when booting. Then, another value containing the time is writen in the registry when the reboot is launched. While rebooting, the script records the hour in a variable then checks if the first value containing the time exists. If so, it is then enough to compare two times in order to obtain the time of rebooting. Then, the two keys added in the registry are removed (the run key and the key where the time is stored).

    Open your favorite text editor (notepad will do the job perfectly) and copy/paste the following script:

    Option ExplicitOn Error Resume NextDim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiffMsgA = "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"Set Wsh = CreateObject("WScript.Shell")PathFile = """" & WScript.ScriptFullName & """"Result = wsh.RegRead(KeyA & "Times")if Result = "" thenMsgResult = Msgbox (MsgA, vbOKCancel, AppName)If MsgResult = vbcancel then WScript.QuitWsh.RegWrite KeyA & "Times", left(Time,8), "REG_SZ"Wsh.RegWrite KeyB, PathFile, "REG_SZ"Wsh.Run "cmd /c Shutdown -r -t 00", false, 0 elseWsh.RegDelete KeyA & "Times"Wsh.RegDelete KeyAWsh.RegDelete KeyBTimeDiff = DateDiff("s",Result,left(Time,8))MsgBox "Your computer reboots in " & TimeDiff & " seconds", VbInformation, AppNameend ifwscript.Quit
    2) Save the file wherever you want on the same HDD (desktop for example) as ReBoot-Time.vbs (you can choose whatever name as far as the extension is ".VBS".

    You can also download the script file here:


    Here's my ReBoot-Time:

    SSD Reboot-Time

    HDD Reboot-Time
    Attached Files Attached Files

Similar Threads

  1. Replies: 1
    Last Post: December 13th, 2011, 10:13
  2. Replies: 0
    Last Post: November 8th, 2011, 02:28
  3. Fun time
    By tanim in forum Fun
    Replies: 1
    Last Post: June 1st, 2010, 19:28
  4. when the last time did u setup ur windows :-p ?
    By abir in forum Miscellaneous Topics
    Replies: 28
    Last Post: October 24th, 2008, 11:32
  5. Replies: 0
    Last Post: September 4th, 2008, 18:34

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Page generated in 0.15043 seconds with 15 queries.