home Tech How to make a batch file for fixing CTF errors in AVG antivirus

How to make a batch file for fixing CTF errors in AVG antivirus

In my earlier post on fixing the Invalid Update Control CTF error which pops up while upgrading the definition files in AVG antivirus,I had shown how to delete the .ctf files and then upgrade the definition files to make the error go away.

Instead of doing the same set of tasks,why not make a simple batch file which will does all the steps described? All that we need to do then is run it when the error shows up.

To make a simple batch file for this,open any text editor like notepad (Start > Run > notepad.exe)

Type the following commands there :

cd
cd c:ProgramDataAvg8updatedownload
del *.ctf

This is for Vista where the AVG ctf files reside in ProgramData symlink.

The batch file will go to the root drive,from there change the directory to ProgramDataAVG8updatedownload and delete all the files with extension *.ctf.

For XP,the only change will be the path :

cd
cd C:Documents and SettingsAll UsersApplication Dataavg8updatedownload
del *.ctf

Once done,save the text file with a .bat extension and a sensible name with Save As type All files.

You will see that the icon changes to that of a batch file.

That’s it.

Run the batch file when you get the AVG error and see the charm of a basic batch file 🙂

Peace.

Leave a Reply

Your email address will not be published. Required fields are marked *