とりあえずAppleScriptで簡単に作った。iDo Scripterなどで動作させるつもり。
idleハンドラで定期的に動かしても良いかも。
tell application "Finder"
try
make folder at startup disk with properties {name:"virus_found"}
--起動ディスクに簡易ログ用フォルダを作る
end try
set the virus to 0
set the alias_list to (every disk)
repeat with obj in alias_list
if local volume of obj = false then
put away obj
--ネットワークボリュームはイジェクトする
else
set the tmp to obj as alias
tell application "Norton AntiVirus"
activate
try
set the virus to (scan tmp)
end try
end tell
if virus > 0 then
set the fname to (time of (current date) as string) & (obj as string)
make folder at folder "virus_found" of startup disk with properties {name:fname}
--もしスキャンの結果、ウイルスが0以上有ったら、簡易ログのフォルダを作る
end if
end if
end repeat
end tell
「スクリプト編集プログラム」にペーストして実行形式で保存すれば使えます。
[ コメントする ]