Twinkie
Banned
- Messages
- 1,389
- Reaction score
- 12
- Points
- 0
I have a little program I made to time a shutdown because Vista has a 10 minute limit to the shutdown time (in XP the limit it more than 6977 or so years XD).
It pauses, writes "echo is off" and then counts down from 0. Whats wrong with this??
Code:
@echo off
title Shutdown Timer
color 0c
set /p sec = "Enter amount of seconds: "
:LOOP
echo %sec%
ping localhost -n 2 > nul
set /a sec=%sec%-1
cls
if (%sec%-30==0) (
shutdown /s /t 30
) ELSE (
goto LOOP
)
Last edited: