Hello together,
im getting a "cl_load" error while using clamscan.exe via batch.
First of all, ive created a Portable Version of Clamwin from current build(0.99.1). I run Clamwin via Windows PE.
Everything is working fine, as long as it gets called via command line.
But when ive trying to run via a very simple batchfile, i get a strange error.
Batch:
@echo on
Title="ClamScan"
set dirroot=V:\Test\clamwin
%dirroot%\bin\clamscan.exe^
--database=%dirroot%\db
pause
|
This is giving me the following error:
LibClamAV Error: cl_load(): No such file or directory: V:\Test\clamwin\
bin\db
ERROR: Can't get file status
While running via command line:
V:
cd Test\clamwin\bin\
clamscan.exe --database=V:\Test\clamwin\db
|
is resulting in:
"Loading virus signature database, please wait..."
and then runs successfully a scan at the own directory.
I've tried with using ".\db", absolute paths, everything would work via commandline, but giving me same error in the batchfile.
It always adds the "
bin" to the database location, but as mentioned, only when called within a batchfile.
The only workaround i see to get it run via batchfile is to put the "db" directory inside of the "bin" directory.
By the way:
I was wondering if there might be a configfile-option for clamscan, like in freshclam.
This would make it easier to specify a lot of command line options for clamscan.
Thanks for help