Jump to content

Xvipes

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Singapore

Posts posted by Xvipes

  1. With this .vbs script (open a notepad and paste it there, the save as .vbs)

    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"

    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

    i indeed didn't let it finish sooner so i will do it again now :)

  2. Hi there guys.Perfect tutorial that helped me a lot!

    I have a quick question though.

    Before i format my compturer(and before i even know the existance of this forum,hence the tutorial) my reboot time(i say reboot because i used to mesure my reboot time via a .bat script) was 51 sec.

    Now after the format and after all the instranctions that i followed correctly(even installed the hotfixes) my reboot time is 55sec.

    So i'm asking you what can i do to drop below 51 sec that i had before format and before even touching the prefetch etc etc.

    Here is the link that my boot time is right now.

    http://www.mediafire.com/?b4f6n9c3hz2gno2

    Thanks in advanced.

×
×
  • Create New...