Zum Inhalt springen

Batchscript zur Installation von Fonts


Empfohlene Beiträge

Geschrieben

Hallo liebe Leute,

ich habe mir ein CMD-Script gebaut, welches unter Windows 7 x64 zusätzliche Fonts installieren soll. Das Script lautet wie folgt:

if not exist %systemroot%\fonts\gla_____.ttf xcopy /y gla_____.ttf %systemroot%\fonts\

if not exist %systemroot%\fonts\glab____.ttf xcopy /y glab____.ttf %systemroot%\fonts\

if not exist %systemroot%\fonts\glabi___.ttf xcopy /y glabi___.ttf %systemroot%\fonts\

if not exist %systemroot%\fonts\glai____.ttf xcopy /y glai____.ttf %systemroot%\fonts\

if not exist %systemroot%\fonts\glal____.ttf xcopy /y glal____.ttf %systemroot%\fonts\

if not exist %systemroot%\fonts\glali___.ttf xcopy /y glali___.ttf %systemroot%\fonts\

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Gill Alt One MT (TrueType)" /t REG_SZ /d gla_____.ttf /f

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Gill Alt One MT Bold (TrueType)" /t REG_SZ /d glab____.ttf /f

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Gill Alt One MT Bold Italic (TrueType)" /t REG_SZ /d glabi___.ttf /f

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Gill Alt One MT Italic (TrueType)" /t REG_SZ /d glai____.ttf /f

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Gill Alt One MT Light (TrueType)" /t REG_SZ /d glal____.ttf /f

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Gill Alt One MT Light Italic (TrueType)" /t REG_SZ /d glali___.ttf /f

Leider funktioniert es nicht richtig. Wenn ich eine der Dateien händisch nachinstallieren möchte, sagt er, dass die Schriftart bereits installiert ist.

Möchte ich diese in Word 2010 verwenden, so sagt er mir, dass diese Schriftart nicht installiert ist.

Wo habe ich einen Fehler gemacht?

Vielen Dank im Voraus.

Gruß Teutone

Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde Dich hier an.

Jetzt anmelden

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...