http://www.zhihua-lai.com is a fun place. Zhihua Lai has created this place and he has put all the useful, interesting stuffs on the site (kinda as a web storage. :)
If you are happy, come to this site a lot more often and also, any advices are welcome.
You will find my CV (Education, Experience and etc), pictures, music, some programs etc on this site.
E: admin AT zhihua-lai DOT com
Thank you for reading this.
Zhihua, 6/November/2007
生活記錄
最后修改: December 02 2008 07:38:42
文件: root -
diary -
2008 -
2008-12 -
2008-12-2_07.36AM.html大小: 1.36KB
標題:U 盤病毒解決方案
A startup script to enable autorun.inf virus protection
Some virus create autorun.inf file to enable automatic file execution when you browse the folder,, which is very annoying... you can create a folder with the same name and in this case the virus would have trouble to write to that file. "Autorun.inf" even can not be overwritten because it is a folder...
Put the script at the startup to make sure every drive has a hidden folder "autorun.inf"
@echo off
REM A Batch Script to Create Folder 'autorun.inf'
REM This can prevent autorun.inf virus.
REM Free to use, put at startup recommended.
REM by Zhihua Lai, 2 - Dec - 2008
for %%i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do call :sub %%i
goto end
:sub
echo Checking %1: ...
if not exist %1:\nul goto notfound
if exist %1:\autorun.inf\nul goto already
if exist %1:\autorun.inf goto clean
goto done
:clean
echo Removing File %1:\autorun.inf ...
attrib -r -a -s -h %1:\autorun.inf
del %1:\autorun.inf
:done
echo Making Directory '%1:\autorun.inf' ...
mkdir %1:\autorun.inf
:already
echo Attributing Directory '%1:\autorun.inf' ...
attrib +r +a +s +h %1:\autorun.inf
goto end
:notfound
echo Skipping %1: ...
:end
評論 (0)
完全 - 一般 - 最小 - 發表 - 所有評論 - 統計
當前頁暫時沒有評論。