troubleshooting Question

Virtual Basic Question...

Avatar of RKoons
RKoonsFlag for United States of America asked on
Windows 7Visual Basic ClassicActive Directory
29 Comments1 Solution146 ViewsLast Modified:
I found the following vbs script that will install fonts into the fonts folder of a Windows 7 workstation:

Const FONTS = &H14&

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FONTS)
objFolder.CopyHere "location\font.ttf"


The only thing you have to do is replace "location", with where the fonts are stored, and the font name, for "font".

I am planning on using this with Group Policy to automate font installation.

The problem is: after it has run once, when the user logs in again, it will ask them if they want to replace to font that is already installed.

I am NOT a vbs expert (unfortunately) so what I need is:

How can I add some code so that it checks if the font already exists before it installs it?

Thanks
ASKER CERTIFIED SOLUTION
Qlemo
"Batchelor", Developer and EE Topic Advisor

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2015

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 29 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 29 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros