Install Fonts from a VBScript

Simply copying fonts into the fonts folder using a VB script doesn’t actually install them.

To install the fonts you have to use the following code:

Mike Hudson

Mike Hudson is a Infrastructure Analyst living and working in Kingston Upon Hull. With extensive experience in Microsoft and Apple technologies, ranging from desktop OS’s to Server OS’s and hardware. By day working as part of an infrastructure team, and by night ridding the world of IT issues through blog posts..

  • Ahmed

    how to uninstall the font also using vbs ?

    • Hello Ahmed

      Deleting the file but be the ‘reverse’ of the above code

      Set objFSO = CreateObject(“Scripting.FileSystemObject”)objFSO.DeleteFile(“C:WindowsFontsArial.ttf”)

      You would need to replace the file path with that of the font you wish to delete.

      Thanks
      Mike

  • Ahmed

    how to uninstall the font also using vbs ?

    • Hello Ahmed

      Deleting the file but be the ‘reverse’ of the above code

      Set objFSO = CreateObject(“Scripting.FileSystemObject”)objFSO.DeleteFile(“C:WindowsFontsArial.ttf”)

      You would need to replace the file path with that of the font you wish to delete.

      Thanks
      Mike

%d bloggers like this: