Hey Steve,
thanks, this actually works. Lucky for me I wanted to exclude both Program Files directors, as this actually excludes both, not each on its own.

Richard

On Sat, Jan 28, 2023, 21:48 Steve Basford via clamav-users <clamav-users@lists.clamav.net> wrote:

On 28 January 2023 16:07:04 Richard Rosner via clamav-users <clamav-users@lists.clamav.net> wrote:

Very interesting to know. Sadly that doesn't help. I added --exclude-dir="C:\\PROGRA~2\\" --exclude-dir="C:\\PROGRA~1\\" and tried running in both PowerShell and CMD, no success, it always ends up scanning Program Files.

Richard

Hi,

How about... 

 --exclude-dir="c:\\program files"


Cheers,

Steve
_______________________________________________

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