cara ini sangat mudah kok karena hanya Menggunakan Notpad.
ok langsung saja ya.........
@echo off
:Menu
cls
color 0a
echo Welcome to Billing computer....!
echo disini anda akan mengaktifkan waktu (timer) lamanya ketika anda bermain. pilih waktu dibawah ini, jika waktu habis komputer langsung SHUTDOWN!
echo ------SELECT------
echo A) 15 minutes
echo B) 30 minutes
echo C) 45 minutes
echo D) 60 minutes
echo E) 120 minutes
echo F) 999 minutes
echo X) END
set /p "jawab=Jawab:"
if %jawab% == a goto A
if %jawab% == b goto B
if %jawab% == c goto C
if %jawab% == d goto D
if %jawab% == e goto E
if %jawab% == f goto F
if %jawab% == x goto end
:A
Shutdown.exe -s -f -t 900 -c "This computer will shutdown On 15 minutes. user cant Stop Shutdown!"
end
:B
Shutdown.exe -s -f -t 1800 -c "This computer will shutdown On 30 minutes. user cant Stop Shutdown!"
end
:C
Shutdown.exe -s -f -t 2700 -c "This computer will shutdown On 45 minutes. user cant Stop Shutdown!"
end
:D
Shutdown.exe -s -f -t 3600 -c "This computer will shutdown On 60 minutes. user cant Stop Shutdown!"
end
:E
Shutdown.exe -s -f -t 7200 -c "This computer will shutdown On 120 minutes. user cant Stop Shutdown!"
end
:F
set /p "pw=Password:"
if %pw% == unlimited shutdown -s -f -t 59940 -c "This computer will shutdown On 999 minutes. user cant stop shutdown!"
end
Setelah itu anda simpan file dengan judul Timer.bat , kenapa Bat itu karena file nya hanya dapat berjalan di substensi Bat..........
NB : atur sesuka kemauan ada waktu Timernya ingat angka berwarna biru dapat anda ubah tergantung waktu yang anda inginkan........ dan selamat mencoba.
Tidak ada komentar:
Posting Komentar