Through vbscript let Ccleaner run with a custom ini. Is it possible?

Hello

I'm trying to get ccleaner to run before logof of my Windows xp machine.

If i'm correct this is possible with group policies.

Now i want to make a vbscript which let ccleaner run with a custom settings file (.ini) so that i can say which items ccleaner should clean.

Is this possible and so yes what is the code for it.

I use a BAT script to replace the CCleaner.ini that resides in the same folder as CCleaner.exe with a selected replacement version of CCleaner.ini,

and then launches CCleaner.exe.

I see no reason why vbscript cannot do the same for you.

Just remember to wait for CCleaner to close and then replace the *.ini with the "normal" version ready for the next day.