查看: 798|回复: 2
收起左侧

1分钟制作DOS命令全集

[复制链接]
发表于 2009-2-26 21:07:59 | 显示全部楼层 |阅读模式 <
1分钟制作DOS命令全集
第一步:新建一个空目录,取名为Doshelp

第二步:在Doshelp目录下新建两个文本文档 1.txt 和 2.txt

第三步:将下面的代码复制到 2.txt 里面,


@echo off
echo "=============(^_^)================"

copy 1.txt DOS命令大全.txt
help>>DOS命令大全.txt
copy 1.txt attrib.txt
help attrib>>attrib.txt
coyp 1.txt break.txt
help break>>break.txt
coyp 1.txt call.txt
help call>>call.txt
coyp 1.txt cd.txt
help cd>>cd.txt
coyp 1.txt chcp.txt
help chcp>>chcp.txt
coyp 1.txt chdir.txt
help chdir>>chdir.txt
coyp 1.txt chkdsk.txt
help chkdsk>>chkdsk.txt
coyp 1.txt cls.txt
help cls>>cls.txt
coyp 1.txt cmd.txt
help cmd>>cmd.txt
coyp 1.txt color.txt
help color>>color.txt
coyp 1.txt comp.txt
help comp>>comp.txt
coyp 1.txt copy.txt
help copy>>copy.txt
coyp 1.txt date.txt
help date>>date.txt
coyp 1.txt del.txt
help del>>del.txt
coyp 1.txt dir.txt
help dir>>dir.txt
coyp 1.txt diskcopy.txt
help diskcopy>>diskcopy.txt
coyp 1.txt doskey.txt
help doskey>>doskey.txt
coyp 1.txt echo.txt
help echo>>echo.txt
coyp 1.txt endlocal.txt
help endlocal>>endlocal.txt
coyp 1.txt fc.txt
help fc>>fc.txt
coyp 1.txt findstr.txt
help findstr>>findstr.txt
coyp 1.txt for.txt
help for>>for.txt
coyp 1.txt format.txt
help format>>format.txt
coyp 1.txt ftype.txt
help ftype>>ftype.txt
coyp 1.txt goto.txt
help goto>>goto.txt
coyp 1.txt if.txt
help if>>if.txt
coyp 1.txt md.txt
help md>>md.txt
coyp 1.txt mkdir.txt
help mkdir>>mkdir.txt
coyp 1.txt mode.txt
help mode>>mode.txt
coyp 1.txt more.txt
help more>>more.txt
coyp 1.txt move.txt
help move>>move.txt
coyp 1.txt path.txt
help path>>path.txt
coyp 1.txt print.txt
help print>>print.txt
coyp 1.txt prompt.txt
help prompt>>prompt.txt
coyp 1.txt rd.txt
help rd>>rd.txt
coyp 1.txt ren.txt
help ren>>ren.txt
coyp 1.txt rename.txt
help rename>>rename.txt
coyp 1.txt replace.txt
help replace>>replace.txt
coyp 1.txt rmdir.txt
help rmdir>>rmdir.txt
coyp 1.txt set.txt
help set>>set.txt
coyp 1.txt setlocal.txt
help setlocal>>setlocal.txt
coyp 1.txt shift.txt
help shift>>shift.txt
coyp 1.txt sort.txt
help sort>>sort.txt
coyp 1.txt start.txt
help start>>start.txt
coyp 1.txt subst.txt
help subst>>subst.txt
coyp 1.txt time.txt
help time>>time.txt
coyp 1.txt title.txt
help title>>title.txt
coyp 1.txt tree.txt
help tree>>tree.txt
coyp 1.txt type.txt
help type>>type.txt
coyp 1.txt xcopy.txt
help xcopy>>xcopy.txt
echo the program is be end!
echo on

第四步:将 2.txt 改名为 2.bat (也就是一个批处理文件)

第五步:双击运行2.bat文件,大功告成!
几秒钟后,你会发现这个目录里已经有了几十个文件,
名字为 if.txt ,for.txt, format.txt..
发表于 2009-2-27 15:43:49 | 显示全部楼层 <
没看出有什么用
 楼主| 发表于 2009-2-27 22:04:33 | 显示全部楼层 <
你冒去学习吧!

QQ|Archiver|手机版|小黑屋|删帖指引|阳新新阳网 ( 鄂ICP备19013424号-2|42022202000111 )

GMT+8, 2024-9-27 07:31 , Processed in 0.244326 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.