Hello!
I have some VB and VBA experiance but am brand new to VB Script and Windows 7 (OY!).
I need to install fonts progmatically and found this simple code on another site:
Where "C:\Mobilstuff\G_Drive\ttf" is the path of my font file and "AGENCYB.TTF" is the font file itself. This works OK but it would be ideal if I could install the font as a shortcut. I've tried creating a shortcut to the font file and referencing THAT in the script (AGENCYB.TTF.lnk) but Win 7 resolves the shortcut back to the font file and loads it as usual. Which I guess makes sense.
So, my question is kind of two-fold. Is there verb string I can use to install as a shortcut (I've guessed at a few but none have worked) and is there a list of these verb strings somewhere>
Many thanks,
Ken
I have some VB and VBA experiance but am brand new to VB Script and Windows 7 (OY!).
I need to install fonts progmatically and found this simple code on another site:
Code:
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("C:\Mobilstuff\G_Drive\ttf")
Set objFolderItem = objFolder.ParseName("AGENCYB.TTF")
objFolderItem.InvokeVerb("Install")
Where "C:\Mobilstuff\G_Drive\ttf" is the path of my font file and "AGENCYB.TTF" is the font file itself. This works OK but it would be ideal if I could install the font as a shortcut. I've tried creating a shortcut to the font file and referencing THAT in the script (AGENCYB.TTF.lnk) but Win 7 resolves the shortcut back to the font file and loads it as usual. Which I guess makes sense.
So, my question is kind of two-fold. Is there verb string I can use to install as a shortcut (I've guessed at a few but none have worked) and is there a list of these verb strings somewhere>
Many thanks,
Ken