Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: tugo.strbenc on August 30, 2020, 01:25:43 PM

Title: Exceptions with regular expressions, is it possible? (SOLVED)
Post by: tugo.strbenc on August 30, 2020, 01:25:43 PM
Hey there,

I was wondering, if it's possible, to exclude files with certain name structure and certain file extension?
My C++ compiler (MinGW) creates a temp file in the %temp% folder (I'm using Win10 pro x64). Every time i try to compile my programs, Avast blocks that temporary .bat file, since it thinks it's a generic virus.
To be more specific, when i press the "build and run", it executes the "mingw32-make.exe" which creates a few temp files in the temp folder. One of those files is a .bat file with a structure r"make\d+-\d+.bat" ...Example "make1302-03.bat". Number in the name of the make file are randomly generated.
Can i tell avast to make an exception for the files with this name structure (and how do i do that)?

Thank you in advance, TTÅ .
Title: Re: Exceptions with regular expressions, is it possible?
Post by: igor on August 30, 2020, 05:05:03 PM
Exceptions only support wildcards (i.e. ? and *), not regular expressions.
So you can only set something like C:\Users\user\AppData\Local\Temp\make*-*.bat
Title: Re: Exceptions with regular expressions, is it possible?
Post by: tugo.strbenc on August 31, 2020, 12:41:06 AM
Thank you very much! It works  :D :D