Just uploaded the .exe file for ur convenience:
http://rapidshare.com/files/255352285/Reboot-Time.zip
this file reboots ur PC and shows ur ReBoot time on restart,. Njoy.
whenever u wanna out, u delete the exe file, lol
OR
1) Open your favorite text editor (notepad will do the job perfectly) and copy/paste the following script:
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 = "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.Quit2) 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"
once u click this file, u will reboot automatically and on reboot u will see the boot up time.. some thing lyk this:
If it isnt working, then renaming hasnt been done properly, see the note
Pls note: u have to rar/zip the file to rename it from .txt to .vbs and then unrar/unzip to desktop
0 comments:
Post a Comment