Jules2010
Joined: 15 Sep 2010 |
Posts: 0 |
|
|
 |
Posted: Wed Sep 15, 2010 12:17 pm |
|
 |
 |
 |
 |
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.
|
|
palswim
Joined: 17 Jun 2008 |
Posts: 0 |
|
|
 |
Posted: Fri Sep 24, 2010 6:15 pm |
|
 |
 |
 |
 |
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.
|
|
Jules2010
Joined: 15 Sep 2010 |
Posts: 0 |
|
|
 |
Posted: Fri Sep 24, 2010 8:34 pm |
|
 |
 |
 |
 |
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.
|
|