Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I install a truetype-font via the logon-script ?

Status
Not open for further replies.

Paulus

Programmer
Sep 25, 2000
16
0
0
A1
I want to install a barcode-font (truetype) at every PC in the network. Who can tell me how it works via the logon-script ?
 
You will need to first copy, and then open the file to register it properly.

You can add a section like this to a standard logon script:

if exist %systemroot%\fonts\font.ttf goto SkipFontCopy
xcopy \\server\share\font.ttf %systemroot%\fonts
start "%systemroot%\font\font.ttf"
:SkipFontCopy

This will use the system variable "SystemRoot" to determine the correct path (just in case it's not "C:\winnt").

The only annoying part is that it opens the font up in the middle of the screen. This will, however, verify that it is in properly.

Cheers,
Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top