you need to enclose the full path AND file name in quotes for the batch file to work.
As for the registry entries for each font, they are located at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
To remove them you could make use of a .REG file as follows.
This is how the font would be added by using a reg file (let's call it FontAdd.reg):
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"OCR-B 10 Pitch BT (TrueType)"="OCRB10N.TTF"
"Alternate Gothic No.2 BT (TrueType)"="tt0542m_ttf"
This is how it would be removed using a reg file we could name FontRemove.reg (note that everything is the same EXCEPT the actual file name is replaced with a minus sign):
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"OCR-B 10 Pitch BT (TrueType)"=-
"Alternate Gothic No.2 BT (TrueType)"=-
If you have never made a reg file you simply use notepad to create it using the bolded text. The top line is the version of registry which is backward compatible but not vice versa. Instead of REGEDIT4 you could also use Windows Registry Editor Version 5.00
The next line is the specific key you are working with and the lines beneath that are the individual values shown in the right window of regedit. After all the keys are listed that you want to remove you press the enter key in notepad to start a new line then save the file with whatever name you want with the .reg file extension.
Depending on the number of fonts you use for your projects you might consider just copying the font into some directory (maybe named for the project) and activating them for your current session as follows:
1. Fonts my be temporarily installed in windows without placing them in
the Fonts folder.
2. To do this, double click on the .ttf file and it will
open in a preview.
3. Minimize this preview and as long as you leave it
open, the font will be available in your windows programs for use.
4. You
may have to close and reopen some programs to get them to load the font so it is best to open the fonts BEFORE opening the program(s) you will need the fonts in.
This eliminates the need for batch files for deleting the fonts and reg files for removing installed fonts from the registry.
.