@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的双引号不能少,否则遇到奇怪的字符如中文括号等,就没法找到要查毒的文件路径。windows
将上面的bat 文件的快捷方式复制到 ui
C:\Users\XXXX\AppData\Roaming\Microsoft\Windows\SendTospa
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\""
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_pathcode
to get more cmd clamwin scanner options see : 得到更多的查毒命令
clamscan.exe --help
blog
另外,正在思考怎么将 proxyee-down 和 clamwin 结合在一块儿。以及,如何实现快捷键查毒ip