ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Command line which scans a file, logs the results and closes
Jules2010


Joined: 15 Sep 2010
Posts: 0
Reply with quote
I'm trying to run ClamWin from the command line.

I need to scan a file, log the results and close.

According to the help I've found elsewhere on the web, I think this should work.

"C:\Program Files\ClamWin\bin\ClamWin.exe" --mode=scanner --path="D:\Visual Studio 2005\Projects\STGetNewTrans\bin\STGenNewTrans.exe" --log="c:\clamavlog.txt" --close

However, it scans, and closes but it doesn't create a log file.

Ideally I'd like the GUI not to show at all and speed up the process, as I'd like to run this in a program.

Thanks in advance.
View user's profileSend private message
palswim


Joined: 17 Jun 2008
Posts: 0
Reply with quote
I've been having trouble creating a log file as well with that switch (and with the shorthand "-l"), even without using the "--close" switch.
View user's profileSend private message
Jules2010


Joined: 15 Sep 2010
Posts: 0
Reply with quote
I gave up on creating a log file.

Instead I use the return code, it tells me if something was found or a problem or whether the files is ok.
View user's profileSend private message
Command line which scans a file, logs the results and closes
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