自制bat文件防蠕虫病毒
发布时间:2017-06-02 09:31
众所周知,一些计算机病毒,特别是蠕虫病毒会主动搜索计算机上存在的exe文件进行感染,那么我们应该如何做才能将这些文件安全保存呢?下面是小编跟大家分享的是自制bat文件防蠕虫病毒,欢迎大家来阅读学习~
自制bat文件防蠕虫病毒
工具/原料
Windows 系统
步骤/方法
1把文件夹内所有的exe文件扩展名修改为ex_:
2依次单击“开始,运行”,输入notepad后回车,即可打开记事本程序(如果提示找不到文件,请确认文件夹%systemroot%system32中是否存在notepad.exe):

3输入命令
ren *.exe *.ex_
后,将文档保存为ren.bat(注意保存文件时的文件类型设置):
4

5将ren.bat文件复制到需要批量修改文件名的文件夹里,双击运行,一个黑框闪过,全部exe文件就可以被转换成ex_文件了(正在运行的文件除外):

6将ex_文件转换回可执行文件exe:
7依次单击“开始,运行”,输入notepad后回车,即可打开记事本程序:

8输入命令
ren *.ex_ *.exe
后,将文档保存为ren.bat:

将renback.bat文件复制到需要批量修改文件名的文件夹里,双击运行,一个黑框闪过,全部ex_文件就可以被转换成exe文件了:

巧写批处理bat文件,exe与ex_之间互相转换:
依次单击“开始,运行”,输入notepad后回车,即可打开记事本程序:

输入下列命令后,将文档保存为AutoRen.bat:
If exist *.exe goto ren
ren *.ex_ *.exe
exit
:ren
ren *.exe *.ex_

将Autoren.bat文件复制到需要批量修改文件名的文件夹里,双击运行,一个黑框闪过,全部ex_文件就可以被转换成exe文件了:

自制bat文件防蠕虫病毒的评论条评论