Code: Select all
//ClamWin
"_settings"
global $g_exec,$g_db,$g_update;
$g_exec = "<xypath>\ClamWinPortable\App\clamwin\bin\clamscan.exe";
$g_db = "<xypath>\ClamWinPortable\Data\db";
$g_update = "<xypath>\ClamWinPortable\ClamWinPortable.exe";
if(exists($g_exec)!=1){
msg "ClamScan path is invalid!";
end 1;}
if(exists($g_db)!=2){
msg "Virus Database path is invalid!";
end 1;}
if(exists($g_update)!=1){
msg "ClamWinPortable path is invalid!";
end 1;}
"Scan : scan"
global $g_exec,$g_db;
sub _settings;
openwith """$g_exec"" --database=""$g_db"" --recursive <items>",s;
"Update : update "
global $g_update;
sub _settings;
open $g_update,w;
-
"Cancel : cancel"
end 1;
XYplorer Beta Club