Jump to content

How to install a font via the command line?


Th3_uN1Qu3

Recommended Posts

I am writing what I do for this tips.

First keep your all fonts in a folder where ever you like. Then make a command file (like Install fonts.bat) with following script.

copy *.ttf "%windir%\Fonts"

here you can add another command for another file extensions. Save the file (install fonts.bat) in same folder. It will copy all your desire fonts into fonts folder of your PC.

Now make a reg file (like fonts.reg) with following commands to entry the fonts into registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]

"Times New Roman (TrueType)"="TIMES.TTF"

Now run the reg file with following command

regedit /s Registryfile.reg

You can make a command file with tow command file describe above like following.

copy *.ttf "%windir%\Fonts"

regedit /s fonts.reg

I added a fonts in reg file. You can also a fonts from your list. It will index all fonts after restarts. Keep all the files in same folder with fonts. After all Restart your PC.

bwxqn.gif

Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...