Registered member login:
Register Now
Altirigos » Homepage2

» Current Poll
Do you leave the Aclient enabled?
YES - 83.06%
103 Votes
NO - 16.94%
21 Votes
Total Votes: 124
You may not vote on this poll.
» Stats
Members: 9,470
Threads: 11,737
Posts: 55,238
Top Poster: Nick (4,981)
Welcome our newest member, kade714
» Online Users: 43
2 members and 41 guests
-DP-, Caldwell
Most users online at once 294, 06-30-2007 at 12:24 PM.
» March 2010
S M T W T F S
28 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 123
Thread: Copying Fonts
View Single Post
Old 11-21-2008, 12:12 AM   #3 (permalink)
negal
 
Status: Super Altiris Admin
Join Date: 11-17-2007
Location: England
Posts: 122


Try the following mate. You only need to change the UNC path and the font names.

some fonts need to be installed, and cannot be simply copied over. Maybe thats what it is.

=======================================
'vbscript
Const FONTS = &H14&
fontpath = "\\SomeServer\express\packages\Fonts\fontxyz"
arrFonts = ARRAY(_
"Font1.otf", _
"Font2.otf", _
"Font3.otf" )
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FONTS)
Set objFolderItem = objFolder.Self
sDestinationPath = objFolderItem.path
Set objFileSystem = CreateObject("Scripting.fileSystemObject")
For i=0 to UBound(arrFonts)
strSourceFile = fontpath & "\" & arrFonts(i)
strDestinationFile = sDestinationPath & "\" & arrFonts(i)
If NOT objFileSystem.FileExists(strDestinationFile) _
Then objFolder.CopyHere strSourceFile

Next
wscript.quit
negal is offline   Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 07:51 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vB.Sponsors
Altirigos