Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Printing and Fonts / January 2007

Tip: Looking for answers? Try searching our database.

Install fonts from batch file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian - 07 Dec 2006 17:58 GMT
I don't know if this is the correct newsgroup, but it's on of the few
referring to fonts, so I hope someone here can help.

I need to be able to distribute some fonts within our company, ideally with
a batch file to install them (Windows XP). I tried a simple Copy command to
the fonts folder, but that only puts the files in the folder, it doesn't
install them.

Can anyone point me in the right direction to be able to do this?

Ian
bull_dog9@hotmail.com - 12 Dec 2006 15:00 GMT
Ian a ?crit :

> I don't know if this is the correct newsgroup, but it's on of the few
> referring to fonts, so I hope someone here can help.
[quoted text clipped - 7 lines]
>
> Ian

Hi, You need to change the attrib of the local font folder.

REM - CHANGES ATTRIBUTES OF FOLDER TO BE ABLE TO WRITE THE FILE
attrib.exe -r -s -h c:\windows\fonts /s /d

xcopy m:\*.* c:\windows\fonts\

REM - PUTS ATTRIBUTES BACK LIKE BEFORE
attrib.exe +r +s c:\windows\fonts /s /d

The only thing is that you need to be an administrator to do so.
Character - 12 Dec 2006 15:18 GMT
> Ian a écrit :
>
[quoted text clipped - 21 lines]
>
> The only thing is that you need to be an administrator to do so.

Sorry, but that isn't the OP's problem. He stated that he CAN copy the
files to the Windows/Fonts folder but that doesn't install them (make
them immediately available for use).

That's because simply copying them into the folder doesn't update the
registry; a registry update WILL take place automatically when Windows
is restarted.

If the copy function is performed with the Windows API, then the
registry update will take place immediately. If you drag a font into
C:\windows\fonts in Explorer, for instance, you'll see a dialogue box
saying "Installing <fontname>"

Using DOS copy will also bypass Windows XP's or Windows 2000's font
validation process, allowing invalid fonts to be placed in the folder,
with unpredictable results.

 - Character
Ian - 04 Jan 2007 16:26 GMT
Thank you Character & bull dog.

As Character pointed out, the problem is not in copying the files, but in
installing (registering) them. I've gone with the "provide instructions to
copy within Windows" option :-)

Thanks for trying.

---
Ian
---

>> Ian a écrit :
>>
[quoted text clipped - 42 lines]
>
>  - Character
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.