GuidePedia



Today i want to share a great PC Tips that name is How To Test Your Computer's Reboot Time.



zzBv


1. Open Notepad and copy everything in the code box below and paste it in Notepad.

Code:

  1. Option Explicit
  2. On Error Resume Next
  3. Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff
  4. MsgA = "Please close all running applications and click on OK."
  5. KeyA = "HKEY_CURRENT_USER\Software\RestartTime\"
  6. KeyB = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime"
  7. AppName = "[GeekPolice] Reboot Time"
  8. Set Wsh = CreateObject("WScript.Shell")
  9. PathFile = """" & WScript.ScriptFullName & """"
  10. Result = wsh.RegRead(KeyA & "Times")
  11. if Result = "" then
  12. MsgResult = Msgbox (MsgA, vbOKCancel, AppName)
  13. If MsgResult = vbcancel then WScript.Quit
  14. Wsh.RegWrite KeyA & "Times", left(Time,8), "REG_SZ"
  15. Wsh.RegWrite KeyB, PathFile, "REG_SZ"
  16. Wsh.Run "cmd /c Shutdown -r -t 00", false, 0
  17. else
  18. Wsh.RegDelete KeyA & "Times"
  19. Wsh.RegDelete KeyA
  20. Wsh.RegDelete KeyB
  21. TimeDiff = DateDiff("s",Result,left(Time,8))
  22. MsgBox "Your computer reboots in " & TimeDiff & " seconds", VbInformation, AppName
  23. end if
  24. wscript.Quit

2. Save the file as Reboot Time.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.

How to use

✔Double click on the script file you saved.
Close all the running applications and click the OK button in the dialog box.

zzBv


✔The computer will reboot and when Windows and a dialog box will open displaying the time your computer took to reboot.

zzBv


Now Share your Score :hello:
 
Top