Advertisement
BaSs_HaXoR

Shutdown Windows .bat script + user input time

Sep 21st, 2024 (edited)
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.12 KB | None | 0 0
  1. @echo off
  2. Echo Enter Time in Minutes to Shutdown PC:
  3. set /P "min=Time: "
  4. set /a sec=min*60
  5. shutdown -s -f -t %sec%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement