> The problem is that clamscan wants the files or directories passed to 
> it via the command line, not via stdin-- besides which, Windows has a 
> fairly limited max length for the command line.

Actually it's not that limited (but still too limited for this purpose I
guess). Windows XP/2k3 has a max command line length of 8191 characters
and Win2k/NT has a limit of 2047. However, if the list of files can be
provided externally it's not much of a problem. A simple .bat should do:

@echo off
for /F %%a in (files_to_scan.list) do clamdscan.exe %%a

This example works for one filename per line. If you rather prefer to
separate the filenames by some character, let's say ";"  it would look like:

for /F "delims=;" %%a in (files_to_scan.list) do clamdscan.exe %%a

Best regards, Nico

-- 
+------------------------------------------------------------------+

 Q: Because it reverses the logical flow of conversation.
 A: Why is putting a reply at the top of the message frowned upon?
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to