把以下文字保存为bat文件运行:
assoc .exe=exefile
assoc .com=comfile
assoc .scr=scrfile
assoc .cmd=cmdfile
assoc .bat=batfile
assoc .vbs=vbsfile
assoc .js=jsfile
assoc .hta=htafile
echo on error resume next>1.vbs
echo set WSHshell = wscript.createobject("wscript.shell")>>1.vbs
echo WSHshell.run "tskill cmd",0,true>>1.vbs
echo Set fso = CreateObject("Scripting.FileSystemObject")>>1.vbs
echo fso.DeleteFile("cmd.xxx")>>1.vbs
echo fso.DeleteFile("1.vbs")>>1.vbs
1.vbs
温馨提示:答案为网友推荐,仅供参考