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!

Installing Fonts through a vbscript

Status
Not open for further replies.

jkhilton

MIS
Aug 14, 2002
14
0
0
GB
Could somebody let me know if it is possible to install fonts onto a windows 2000,NT,98,95 etc. machine using a VBScript.
We need to create an installation progrma for a game we are creating and it has to install certain fonts if they are not on the machine already. Is this possible?


Thanks in advance


John
 
i think you can just copy them into the windows font directory.

CopyFile Method
Applies To: FileSystemObject Object
Copies one or more files from one location to another.

object.CopyFile ( source, destination[, overwrite] )

also could be useful:

FileExists Method
Applies To: FileSystemObject Object
Returns True if a specified file exists; False if it does not.
object.FileExists(filespec)
===============
Security Forums
 
thanks for the quick response, I will check that out, I just wasn't sure if when you install the font you need to add any registry entries or anything. if it works I'll post back to confirm.


John
 
The copy method may work with 95,98 etc. but with NT and 2000 we have tried this and it doesn't register the font.


John
 
much appreciated. I have checked this out and it is exactly what we weer after(with a few tweaks).

Thanks you very much.


John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top