Instaling Fonts

Welcome Forums General PowerShell Q&A Instaling Fonts

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
1 year, 7 months ago.

  • Author
    Posts
  • #68941

    Participant
    Points: 0
    Rank: Member

    Hi Powershell People!.
    I have a DVD with a load of fonts in the "E:\Fonts\Standard\*.ttf" Folder.
    I need to install all of these to the "C:\Windows\Fonts" Folder, sounds unbelievably simple.
    I can't crack it. Any pointers or suggestions gratefully accepted.
    Thanks
    Malcolm J.

  • #69126

    Participant
    Points: 21
    Rank: Member
    $fontpath = "E:\Fonts\Standard\"
    $fontdest = "C:\Windows\Fonts\"
    
    Copy-Item -path $fontpath -include "*.ttf" -destination $fontdest

    Something like this should get you what you need. It will copy any file that is a .ttf to the C:\Windows\Fonts folder.

The topic ‘Instaling Fonts’ is closed to new replies.