Author Topic: Exceptions with regular expressions, is it possible? (SOLVED)  (Read 1541 times)

0 Members and 1 Guest are viewing this topic.

Offline tugo.strbenc

  • Newbie
  • *
  • Posts: 2
Exceptions with regular expressions, is it possible? (SOLVED)
« 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Å .
« Last Edit: August 31, 2020, 12:42:25 AM by tugo.strbenc »

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Exceptions with regular expressions, is it possible?
« Reply #1 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

Offline tugo.strbenc

  • Newbie
  • *
  • Posts: 2
Re: Exceptions with regular expressions, is it possible?
« Reply #2 on: August 31, 2020, 12:41:06 AM »
Thank you very much! It works  :D :D