ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Command Line help
Clammy


Joined: 12 Nov 2009
Posts: 0
Location: socal
Reply with quote
In the last version I was able to use processexplorer and copy the parameters of a folder scan and create a batfile in my send to menu which allowed me to rightclick on any folder to scan it. For whatever reason I cannot make it work any more. Can someone please tell me the specific code to successfully scan a folder from a bat file. Here is what I have that used to work ("+ScanFolder.bat"): BTW clamwin is NOT installed.

"D:\1-SAVE\03-SECURITY\ClamWin\bin\CLAMWIN.exe" --tempdir "c:\windows\temp" --stdout --database=".\db" --log=".\ClamScanLog.txt" --infected --kill --unload -u --max-files=500 --max-scansize=150M --max-recursion=50 --max-filesize=100M --show-progress --recursive --exclude="[^\]*\.dbx$" --exclude="[^\]*\.tbb$" --exclude="[^\]*\.pst$" --exclude="[^\]*\.dat$" --exclude="[^\]*\.log$" --exclude="[^\]*\.evt$" --exclude="[^\]*\.nsf$" --exclude="[^\]*\.ntf$" --exclude="[^\]*\.chm$" --path=%1

I have checked the config file and have made a reg entry for the db as well. Could it be an environmental setting?
CONFIG
[EmailScan]
scanoutgoing = 0
scanincoming = 0
path =

[ClamAV]
infectedonly = 1
maxfilesize = 100
showprogress = 1
excludepatterns = *.dbx|CLAMWIN_SEP|*.tbb|CLAMWIN_SEP|*.pst|CLAMWIN_SEP|*.dat|CLAMWIN_SEP|*.log|CLAMWIN_SEP|*.evt|CLAMWIN_SEP|*.nsf|CLAMWIN_SEP|*.ntf|CLAMWIN_SEP|*.chm
kill = 1
priority = Normal
logfile = D:\1-SAVE\03-SECURITY\ClamWin\bin\ClamScanLog.txt
freshclam = .\freshclam.exe
scanarchives = 1
clamscan = .\clamscan.exe
maxscansize = 150
includepatterns =
maxfiles = 500
scanole2 = 1
quarantinedir = .\quarantine
maxlogsize = 1
moveinfected = 0
enablembox = 0
scanrecursive = 1
database = .\db
maxrecursion = 50
clamscanparams = --bell
debug = 0
removeinfected = 0

[UI]
reportinfected = 1
traynotify = 1
version = 0.95.3
standalone = 1

[Proxy]
host =
password =
port = 3128
user =

[EmailAlerts]
enable = 0
from = clamwin@yourdomain
to = admin@yourdomain
smtppassword =
smtpuser =
smtphost =
smtpport = 25
subject = ClamWin Virus Alert

[Updates]
checkversion = 1
checkversionurl = https://clamwin.sourceforge.net/clamwinver.php
warnoutofdate = 1
enable = 0
dbupdatelogfile = D:\1-SAVE\03-SECURITY\ClamWin\bin\ClamUpdateLog.txt
dbmirror = database.clamav.net
updateonlogon = 0
frequency = Daily
weekday =
time = 05:00:00

REG
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ClamWin]
"ConfigDir"="D:\1-SAVE\03-SECURITY\ClamWin\bin"
"DataDir"="D:\1-SAVE\03-SECURITY\ClamWin\bin\db"
View user's profileSend private message
Clammy


Joined: 12 Nov 2009
Posts: 0
Location: socal
Reply with quote
I can update automatically, and scan a file from my sendto with no problem. I noticed that when scanning a folder, clamwin creates a random temp folder which I don't really remember dealing with in any exe parameters.
Anyways I just need the proper parameters for to scan a damn folder from a bat file. Thanks for any help.
Better than the reg file what would be the environmental variable to access the db?
path to db .\bin\db?
View user's profileSend private message
Command Line help
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic