Deleting a list of files

S

Streetbystreet

I ran a font analyzer tool (Font Doctor) in a directory of ~10,000
uninstalled fonts. It came up with almost 3,000 which are damaged. The names
and filepaths of the damaged fonts have been exported to a .txt file. I want
to just delete all of the suspect fonts before I add the OK fonts to my type
manager. But, I don't want to delete ~ 3,000 files manually. Is there any way
to delete all of these files in a batch or automatic fashion?

Thanks in advance for any help or advice you can render.
 
N

nass

Streetbystreet said:
I ran a font analyzer tool (Font Doctor) in a directory of ~10,000
uninstalled fonts. It came up with almost 3,000 which are damaged. The names
and filepaths of the damaged fonts have been exported to a .txt file. I want
to just delete all of the suspect fonts before I add the OK fonts to my type
manager. But, I don't want to delete ~ 3,000 files manually. Is there any way
to delete all of these files in a batch or automatic fashion?

Thanks in advance for any help or advice you can render.

You look like preparing yourself for the Killbox lol
Download Killbox from here:
http://killbox.net/downloads/KillBox.exe
How to use Killbox:
http://metallica.geekstogo.com/killboxexplanation.html

Use the option for On Boot deletion by telling the Box the path for the
corruptfonts.txt and it will delete them on Boot up.
HTH,
nass
 
J

John John (MVP)

Streetbystreet said:
I ran a font analyzer tool (Font Doctor) in a directory of ~10,000
uninstalled fonts. It came up with almost 3,000 which are damaged. The names
and filepaths of the damaged fonts have been exported to a .txt file. I want
to just delete all of the suspect fonts before I add the OK fonts to my type
manager. But, I don't want to delete ~ 3,000 files manually. Is there any way
to delete all of these files in a batch or automatic fashion?

Thanks in advance for any help or advice you can render.

To safely test in a batch file:

for /f "Tokens=*" %%a in (list.txt) do echo "%%a"

To test at the Command Prompt:

for /f "Tokens=*" %a in (list.txt) do echo "%a"

When you are confident that it will delete the right files use the del
command instead of echo:

for /f "Tokens=*" %%a in (list.txt) do del "%%a"

John
 
S

Streetbystreet

Thank you both for the responses. Killbox is exactly the type of utility I
was looking for. If that proves unworkable, I'll move to John's batch
suggestions.

Many thanks!
 
J

ju.c

These are the best apps for file deletion, all free.
(You can't delete a folder if you have it opened)

Unlocker 1.8.7 237 KB
Info: http://ccollomb.free.fr/unlocker/
Download: http://ccollomb.free.fr/unlocker/unlocker1.8.7.exe

KillBox 90 KB
Info: http://www.killbox.net/
Download: http://www.killbox.net/downloads/KillBox.exe

FileASSASSIN 1.06 163 KB
Info: http://www.malwarebytes.org/fileassassin.php
Download: http://www.malwarebytes.org/fa-setup.exe

DelinvFile - Delete Invalid Files and Folders
Info: http://www.purgeie.com/delinv/index.htm
Download: http://www.purgeie.com/dl/divfinst.exe


This is a trick to delete an undeletable file by restoring a file over it with a file
created with the same name using a drive imaging program.

Instructions:

1. Create a text file and write in it a couple of letters.
2. Save that file in your root drive (C: for example) with the
same exact name and extension as the file you want to delete.
3. Now make a backup your new file (I used Acronis True Image).
4. Open your backup program and restore the file you created to
the folder where the undeletable file is, overwriting it.
4. Now you can delete it!
5. Run chkdsk


ju.c
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top