Jump to content
Sign in to follow this  
XeneX

Free Shutdown Timer -Open Source

Recommended Posts

ni ada simple batch file utk buat shutdown timer..simpan dlam file .bat or .cmd

selamat mencuba...

[code]

cd /d %windir%\system32
@echo off
:begin
set kompem=
color 4f
cls
Title AUTO SHUTDOWN by xenex
echo.
set/p "time_h=Time in Hour=>"
set/p "time_m=Time in minute=>"
set/p "msg=Mesage=>"
set/a "Total_m=%time_m%*60"
set/a "Total_h=%time_h%*60*60"
set/a "Total=%Total_m%+%Total_h%"
echo.
echo Your computer will be shutdown in %time_h% HOUR %time_m% MINUTE,Are you sure?
echo.
echo press Enter to continue, Others to Decline?
echo.
set /p "kompem=Comfirm=>"
if not "%kompem%"=="" goto begin
shutdown -s -t %Total% -c "%msg%"
exit

rem : note ==>
rem : klu nak restart –> shutdown -R -t %Total% -c “%msg%”
rem : klu nak logoff –> shutdown -l -t %Total% -c “%msg%”
rem : Klu nak cancel shutdown type shutdown -a kat start–>run
[/code]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...