• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need a batch file

Not sure where to put this, but I need a batch file to delete pattern backups in the Adblock folder. It creates these back ups that grow in size and suck the life out of a hard drive and I'm having to remove them.

For Windows XP the path to the Patterns is:


Code:
C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\2k4f14l4.default\adblockplus
and the name of the files to be deleted is:


Code:
patterns-backup1.ini

What happens is the patterns will be named backup1.ini, backup2.in, backup3.in, etc. So I need a wild card for deletion.

Hopefully with the information I provided this can be used to create a batch file that can simply delete the backup patterns.ini files.

Thanks!

PS: I would also like to have this for Windows 7.

The path to the Patterns is:

Code:
C:\Users\Aaron\AppData\Roaming\Mozilla\Firefox\Profiles\fmjo8un8.default\adblockplus
 
Last edited:
Code:
cd AppData\Roaming\Mozilla\Firefox\Profiles\fmjo8un8.default\adblockplus

del patterns-backup*.ini

This should work for win 7, save the file as xyz.bat.
 
I had to change the fist line to

Code:
cd C:\Users\AAron\AppData\Roaming\Mozilla\Firefox\Profiles\m9zzhvb9.default\adblockplus
That worked. Thanks! I knew it could be simple but wasn't sure how to create it. Now I just have to tweak it for XP.
 
even easier

:: go to root of drive
cd \
:: delete all ini files that start with patterns-backup in all directories
del patterns-backup*.ini /s


What ever happened people knowing the CMD commands? 😕
 
even easier

:: go to root of drive
cd \
:: delete all ini files that start with patterns-backup in all directories
del patterns-backup*.ini /s


What ever happened people knowing the CMD commands? 😕

That could potentially match some other file he doesn't want to delete. Why not isolate the command to the known directory?
 
That could potentially match some other file he doesn't want to delete. Why not isolate the command to the known directory?

1) More work to drill down to the directory 😡

2) He should know if other applications are creating such files. A simple search will let him know if such files are being created. I suspect not; given the complexity of the file name pattern.

3) HE could have used the file search; sort output by directory and then delete those files. Windows - All graphical for the lazy. :twisted:
 
1) More work to drill down to the directory 😡

2) He should know if other applications are creating such files. A simple search will let him know if such files are being created. I suspect not; given the complexity of the file name pattern.

3) HE could have used the file search; sort output by directory and then delete those files. Windows - All graphical for the lazy. :twisted:

1) More work to do a simple cd command? Really?
2) I'm sure you know every file that exists on your OS too, right? Even if they're not there now, such files could be created in the future by something, and then deleted without you wanting them to be.
3) Yeah, he COULD do that, but wouldn't that be much harder than 1 time adding the path to the batch file?

I'm all for optimizing stuff and using the command line to make your life easier, but blindly deleting any file on your hd that matches a specific file pattern seems very silly to me.
 
Back
Top