ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Command Line Arguments for clamscan/freshclam
Stephen80


Joined: 20 Nov 2007
Posts: 0
Location: Denver, CO
Reply with quote
I am trying to figure out how to run "WinClam" from the command line automatically.

I have WinClam installed on our server and and it to run automaticly at night without the nesseccity of manually logging on. I know how to setup a bat file and windows Scheduled tasks to accomplish this, but I cannot get clamscan and freshclam to run from the command line. I need to know what to put into a conf file for freshclam, and where the database is stored so i can point to it with each program.

Any help would be great.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
freshclam.conf:
Code:

DNSDatabaseInfo current.cvd.clamav.net
DatabaseMirror database.clamav.net
MaxAttempts 3


then you need to specify where tro store the database files on command line. For command line switches use:
Code:

freshclam.exe --help
clamscan.exe --help


by default clamwin stores the database in:
C:\Documents and Settings\All Users\.clamwin\db
check clamwin prefernces-file locations
View user's profileSend private message
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
You can use standalone clamscan/freshclam without bothering about db path
just merge this registry key (note you can use HKCU if you don't have admin privileges)

Code:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\ClamAV]
"ConfigDir"="C:\\Clamav"
"DataDir"="C:\\Clamav\\db"


you should put the suggested freshclam.conf
in the dir pointer by ConfigDir registry key
you may want to set DataDir pointing clamwin db (the path suggested by alch)
View user's profileSend private message
Command Line Arguments for clamscan/freshclam
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