過金山毒霸的方法

2022-06-14 08:21:02 字數 944 閱讀 1775

例如這個程式:

以特定格式執行textbox中的**不留快取:

open "c:\" for output as #3 'open後寫上你的檔案路徑

print #3, //將text中的內容複製到建立的檔案

close #3 //關閉檔案

shell "wscript c:\"//執行檔案

shell "cmd /c del /f /q c:\"//在執行後刪除檔案

這樣會使金山毒霸馬上攔截,原因是金山毒霸攔截了

:open "c:\" for output as #3 'open後寫上你的檔案路徑

print #3,

這個內容,金山毒霸攔截了你建立的敏感格式檔案,那麼你就不可能用這個**執行並不讓金山攔截,有什麼好方法呢?

ok經過本人研究,總結出一套方法:叫做替換檔名法;

將你要執行的textbox中的文件改為txt格式後;

然後將其重新命名,這樣毒霸就不會攔截了;

**改為如下:

open "d:\" for output as #4 'open後寫上你的檔案路徑

print #4,

close #4

dim oldname as string, newname as string

dim folderpath as string

folderpath = "d:\"

oldname = folderpath & ""

newname = folderpath & "" ' 定義新檔名。

name oldname as newname ' 更改檔名。

shell "wscript d:\"

shell "cmd /c del /f /q d:\"

將其新增為按鈕後,執行之後,金山沒一點反應,但是想達到效果一模一樣,看來**的優化和方案也決定了金山毒霸的"強弱";