I would try the 'short' names of these directories.
dir /X c:\
And yes the /X is case sensitive. /X displays the short names.
Lyle Giese
On 1/28/23 08:58, clamav.mbourne@spamgourmet.com wrote:
> If it's expecting a regex, perhaps try:
> --exclude-dir="/mnt/c/Program Files \(x86\)/"
> without the quotes, that would probably be:
> --exclude-dir=/mnt/c/Program\ Files\ \\(x86\\)/
>
> Depending on the flavour of regex used, the parentheses may indicate
> grouping in the regex, so may need to be escaped with a backslash to
> match literal parentheses. In the second example, the backslashes
> forming part of the regex need to be escaped themselves to avoid being
> interpreted specially by the shell.
>
> I'm not on Windows so can't try those to see if they do work - it was
> just a thought that might (or might not) help.
>
> Mark.
>
>
> Richard Rosner via clamav-users wrote:
>> Hey Marc,
>> that doesn't seem to be always the solution. In fact, I just
>> installed clamscan in a Debian based WSL (1) instance, same problem.
>> Only difference: exclusion of Program Files seems to work, but not of
>> Program FIles (x86). I tried both --exclude-dir=/mnt/c/Program\
>> Files\ \(x86\)/ and --exclude-dir="/mnt/c/Program Files (x86)/".
>> Didn't help.
>>
>> Richard
>>
>> Am Sa., 28. Jan. 2023 um 13:04 Uhr schrieb newcomer01 via
>> clamav-users <clamav-users@lists.clamav.net
>> <mailto:clamav-users@lists.clamav.net>>:
>>
>> Hello Richard,
>>
>> maybe it is now time to switch to Linux? 😉
>> Here we have lot of options to exculde and include paths for
>> scanning (with regex support too) 😉
>> Sorry, i have no experience with clamav on Win as reason that I
>> switched long time ago to Ubuntu LTS
>> But filesize problems while scan we have on Linux too.
>>
>> Hope that someone other user can support you with the Win Version of
>> clamav.
>>
>> kind regards,
>> Marc
>>
>>
>> Von / From: Clamav User Mailinglist
>> <mailto:clamav-users@lists.clamav.net
>> <mailto:clamav-users@lists.clamav.net>>
>> An / To: Newcomer01 <mailto:newcomer01@posteo.de
>> <mailto:newcomer01@posteo.de>>
>> CC / CC: Richard Rosner <mailto:rrosner5@gmail.com
>> <mailto:rrosner5@gmail.com>>
>> Gesendet / Sent: Samstag, Januar 28, 2023 um 12:49 (at 12:49 PM)
>> +0100
>> Betreff / Subject: [clamav-users] clamscan exclude-dir on Windows
>> > Hi,
>> > I'm trying to make a full scan of my PC with clamscan.exe on
>> Win10. Unfortunately, my C Volume is too big and my PC too slow to
>> finish the scan in a day. So of course when I start it the next day,
>> I want to exclude larger directories that already have been scanned.
>> That works great with some directories, but I just can't figure out
>> a way to exclude C:\Program Files\ and C:\Program Files (x86)\ from
>> the scan. And I did try many variations. "C:\\Program Files
>> (x86)\\", "C:\\Program Files*\\", %ProgramFiles(x86)%\\,
>> C:\\"Program Files (x86)"\\ or "C:\\Program^ Files^ ^(x86^)\\" but
>> nothing works. Sadly, Googling for that also doesn't bring up
>> anything helpful.
>> >
>> > Can anybody make any suggestions? And could such tips be included
>> to the documentation or somewhere else?
>> >
>> > Best Greeting
>> > Richard
>> >
>> > _______________________________________________
>> >
>> > Manage your clamav-users mailing list subscription / unsubscribe:
>> > https://lists.clamav.net/mailman/listinfo/clamav-users
>> >
>> >
>> > Help us build a comprehensive ClamAV guide:
>> > https://github.com/Cisco-Talos/clamav-documentation
>> >
>> > https://docs.clamav.net/#mailing-lists-and-chat
>>
>> _______________________________________________
>>
>> Manage your clamav-users mailing list subscription / unsubscribe:
>> https://lists.clamav.net/mailman/listinfo/clamav-users
>>
>>
>> Help us build a comprehensive ClamAV guide:
>> https://github.com/Cisco-Talos/clamav-documentation
>>
>> https://docs.clamav.net/#mailing-lists-and-chat
>>
>>
>> _______________________________________________
>>
>> Manage your clamav-users mailing list subscription / unsubscribe:
>> https://lists.clamav.net/mailman/listinfo/clamav-users
>>
>>
>> Help us build a comprehensive ClamAV guide:
>> https://github.com/Cisco-Talos/clamav-documentation
>>
>> https://docs.clamav.net/#mailing-lists-and-chat
>>
>
> _______________________________________________
>
> Manage your clamav-users mailing list subscription / unsubscribe:
> https://lists.clamav.net/mailman/listinfo/clamav-users
>
>
> Help us build a comprehensive ClamAV guide:
> https://github.com/Cisco-Talos/clamav-documentation
>
> https://docs.clamav.net/#mailing-lists-and-chat
_______________________________________________
Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation
https://docs.clamav.net/#mailing-lists-and-chat