设为首页 加入收藏

TOP

clamwin + 拖拽查毒+右键查毒
2019-08-30 06:14:13 】 浏览:29
Tags:clamwin 查毒

下载 clamwin 到 windows 并安装

http://www.clamwin.com/

为了方便使用clamwin,写一个bat,实现拖拽到bat 自动查毒

@echo off
mode con cols=100 lines=2
REM 拖拽查毒
REM 文件全名为: %~nx1, 文件名为: %~n1, 扩展名为: %~x1
REM set "suffix=%~x1"
set "path=%~dp1"
set "filename=%~nx1"
echo checking....  %path%%filename%
"D:\Program Files (x86)\ClamWin\bin\ClamWin.exe"  --mode=scanner --path="%path%%filename%"
exit

注意: 参数path的双引号不能少,不然遇到奇怪的字符如中文括号等,就无法找到要查毒的文件路径。



右键查毒 “发送到”版

将上面的bat 文件的快捷方式复制到 

C:\Users\XXXX\AppData\Roaming\Microsoft\Windows\SendTo

image

image


有检查毒 注册表版

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\clamwin]
@="Execute clamwin"

[HKEY_CLASSES_ROOT\*\shell\clamwin\command]
@="\"E:\\JianGuoYun\\myscript\\clamwin\\drag-clamwin-to-check-virus.bat\" \"%1\""

image





以后可能使用到的代码:


ui clamwin file scan syntax:  命令行启动ui界面查毒
     clamwin.exe --mode=scanner --path=target_file_path


cmd clamwin file scan syntax:  如果仅仅在命令行中使用,可以用下面的
     clamscan.exe --database=clam_db_path target_file_path


to get more cmd clamwin scanner options see :  获得更多的查毒命令
     clamscan.exe --help

另外,正在思考怎么将 proxyee-down 和 clamwin 结合在一起。以及,如何实现快捷键查毒



】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Cmder--Windows下代替原生的cmd命.. 下一篇在windows下搭建汇编编程环境

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目