Set file exclusion via command line

Hi all,

i think this is an easy one, but i wasnt able to find the answer yet. How would i set file or directory exclusions from the command line?

Thanks a lot

As far as I’m aware you can’t, you have to use the GUI and unfortunately add them there. The only command line function I believe is in the pro version, but looking at the avast help file for ashCmd Program, there is noting there about setting exclusions.

I don’t know where the exclusions are stored so probably not able to hack the file and add exclusions there.

Are you refering to on-demmand or on-access scanning?
Are you using the trial (or Pro) version?

Well, it actually doesn’t matter - the exclusions cannot be set by command-line, no matter if it’s for on-demand or on-access scanner.

I could make an script (run by command-line) to add it to avast4.ini file 8)

What are you trying to add to the avast4.ini ?
There are no exclusions in the avast4.ini, certainly none of my exclusions are in it.

[Common]
Exclude=
http://forum.avast.com/index.php?topic=1647.msg10256#msg10256

Thanks for that.
Where are the exclusions stored for the Standard Shield and Program Settings, Exclusions ?
To me it seems strange to have them in two different locations, not to mention any overhead checking two locations for exclusions for an on-access scanner. Not so much of an issue for on-demand, are these avast4.ini exclude settings global ?

For the other providers (on-demmand scanning): avast4.ini file, section [Common], value Exclusions.
For the Standard Shield provider (on-access scanning): maybe some place into \DATA\Avast4.db file, the ‘storage’ of settings and sessions.

Maybe this is due to necessary different storages for Home and Pro versions, I mean, seems that you ‘must’ keep the storage this way or the Home version will store sessions and this is only ‘available’ in the Pro version.
This is a total guess ;D

Edited… I was wrong and, at the night, dreaming, I remember what Igor posted… So I correct my post now.

OK, it’s new to me, but the .ini file really contains a list of exclusions - in particular, the global exclusions for the on-demand scanner.
The exclusions for the resident protection, as well as for the other tasks (as defined in the Enhanced User Interface), are stored in avast! database.

Well I have two exclusions set-up in Program Settings, Exclusions and neither of those are recorded in the ini file. I don’t know if this is different I use the home version.

Realy?
Maybe a ‘official’ review about the avast4.ini file thread won’t be bad…
Finally I could ‘teach’ something to our guru Igor ;D ;D

I certainly don’t know every little detail about every part of the program :wink:
I just somehow supposed that all the exclusions are stored in the database… seems they’re not.

Sure, it was a joke as you’ve realised :wink:

But, comming back to that idea, won’t be bad if we have a full avast4.ini file released some day, without secrets :slight_smile: