Quote:
Originally posted by hacker56 at 2008-6-3 20:32:
How to cancel it?
You can close the service as regvip2008 said, but you can't load tasks before the service is enabled.
Another method is to delete the task.
Open Start - Control Panel - Task Scheduler, see the customized task, delete it!
I wrote a principle bat before, now send the code for everyone to see (originally wanted to say "research" but thought it had no technology so changed it

)
Code:
@mode con cols=90 lines=35&color 1f
@echo off
call :cl
goto input
:1
title Scheduled Shutdown! made by: Xiaoye
cls
echo Current time: %date% , %time%
echo\&echo Please enter the scheduled shutdown time. (Need 24-hour format, such as 17:30 : Please use English punctuation)&echo\&echo\
echo If you want to return to the menu function, press 0 and enter!
echo.
set tim=
set /p tim=Please enter the shutdown time:
if "\%tim%\"=="\0\" call :cl&goto input
at %tim% /interactive shutdown -s -c "To cancel the shutdown, please select the cancel shutdown function in the function menu!!" >nul
if errorlevel 1 cls&echo * Incorrect input, please re-enter! &goto 1
echo.
echo.
echo.
echo.
echo ================Setting successful!!!==============================
echo.
echo ======Remember to save documents or other things that need to be saved before shutdown! ^_^=====
ping -n 2 127.1>nul
call :cl
goto input
:2
shutdown -a
cls
echo.
echo.
echo.
title Shutdown canceled successfully! made by: Xiaoye
echo.
echo=======================Shutdown canceled successfully!!!==================
echo.
echo.
echo.
ping -n 2 127.1>nul
goto input
:4
cls
title Function Description made by: Xiaoye
echo.
echo.&echo.&echo.&echo.&echo.&echo.
echo ※※※※※※※※※※※※※※※※Function Description:※※※※※※※※※※※※※※※※※※※※※※
echo.
echo.
echo ◇◇◇◇Scheduled Shutdown: The scheduled shutdown function can only be used on the same day. It can enter multiple shutdown times in the same time period. The system will automatically start the shutdown times in chronological order (that is, after the first shutdown time is canceled, the second shutdown time will be automatically started, and so on!). After setting the shutdown time, you can view the set shutdown time under the "The shutdown time you set is:" in the function menu.
echo.
echo ◇◇◇◇Cancel Shutdown: Canceling the shutdown is only effective when the shutdown countdown window is popped up!! Using it before the window is popped up will display that the shutdown is canceled successfully, but the scheduled shutdown function is not actually canceled, and the scheduled shutdown function will still be started when the time comes! !
echo.
echo ◇◇◇◇Exit: Exit the program window!!
echo.
echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo\&echo.&echo.
pause
goto input
:3
cls&exit
:input
cls
title Function Code Number Selection!
cls
call :card
echo\&echo\&echo\
echo Please enter the function code number:
echo.
set sel=
set /p sel=
if "\%sel%\"=="" goto input
call :%sel%
if errorlevel 1 cls&echo\&echo\&echo\&echo\&echo ========= ☆★Incorrect command entered, trying to fool me? !★☆======&call :cl&goto input
:cl
for /l %%i in (1,1,40) do (
echo\
for /l %%a in (1,1,250) do ver>nul
)
goto :eof
:card
title Function Menu! made by: Xiaoye
echo\&echo\&echo.
echo\&echo\&echo Function Menu:
echo ▲△△△△△△△△△△△△△△△△△△
echo ▲ ▲
echo ▲ 1=Scheduled Shutdown ▲
echo ▲ ▲
echo ▲ 2=Cancel Shutdown ▲
echo ▲ ▲
echo ▲ 3=Exit ▲
echo ▲ ▲
echo ▲ 4=Function Description ▲
echo ▲ ▲
echo △△△△△△△△△△△△△△△△△△▲
echo.
echo.
echo.
echo (Note: The code number on the left of the equal sign is the function code number, please enter the code number on the left!&echo\
echo The cancel shutdown function is only effective when the shutdown countdown window is popped up!!)
echo.
echo.
echo.
echo The shutdown time you set is: %tim%