add new font.ttf file to windows 7?

Mohammad Alsolaiman
Mohammad Alsolaiman used Ask the Experts™
I use this code to place a new font in c:\windows\fonts
"FileCopy strSourcePath, strDestanationPath"
It works good in windows xp
But in windows 7
I have err# 75 directory/path access problem(some thing like that)
I was very sure I have administrator authority and the folders property is not read .
Where is the problem please
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Consultant End-User Computing
Start your Explorer windows with elevated privileges... (run as administrator)
Most Valuable Expert 2013
Set privileges in HKLM before running as with UAC you'll need elevated rights
Also you might find using the FONTS_FOLDER variable useful as described here (for XP but will work in W7)</P>
How to Disable and Turn Off UAC in Windows 7

User account control (UAC) a new feature which was introduced in Microsoft windows vista has become more annoying feature. UAC in windows vista is way to protected windows operating system by preventing unauthorized changes to your system. However UAC in Windows 7 is less annoying and more friendlier now.

Windows 7 UAC has option to set level of alerts and notification hence virtually no setting to turnoff or disable UAC in windows 7.well actually the steps for disabling UAC in windows 7 is more or less similar to windows vista.
Thanks to My Digital Life, which has listed four ways to turnoff and disable UAC in windows 7. We are listing two methods from that list which are easier to follow.

Method 1: Disable and Turnoff UAC in Windows 7 from Control Panel
1. Access User Control Panel from Start Menu -> Control Panel -> User Accounts and Family Safety -> User Account

2. Click on
User Account Control settings link.

3. Move the Slider to Never Notify

4. Click OK to make the change effective

5. Reboot.

Method 2: Disable UAC with Registry Editor (Regedit) in Windows 7
1. Run Registry Editor (RegEdit) by typing regedit at command prompt or at startmenu->run

2. Locate following registry key:


3. Locate the following REG_DWORD value:


4. Set the value of EnableLUA to 0.

Optional step to suppress UAC permission prompt dialog,

1. Locate the following REG_DWORD value:


2. Set the value of ConsentPromptBehaviorAdmin to 0 (optional).

Now Exit from Registry Editor and Restart the computer.

carpe Diem
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Distinguished Expert 2018
You are using the command line, so the comm. line has to be started elevated.
->hit the start button, type cmd ->cmd.exe will be found ->now press ctrl+shit+enter (or simply rightclick it and select "run as administrator"). Then launch your command.
As I don't think you are using it once at your own computer but rather on many machines, you should use a start script - start scripts run prior to logon and don't need to run elevated.
go to control panel and then go to folder "fonts" the paste the font in the folder its done
Mohammad Alsolaimanapplication programmer


Hi mastrasser,
i use TweakUAC but nothing happen

Mohammad Alsolaimanapplication programmer


Hi, McKnife
"->hit the start button, type cmd ->cmd.exe will be found ->now press ctrl+shit+enter (or simply rightclick it and select "run as administrator"). Then launch your command. "
when i type "type cmd" i got th black ms dose prompt , thin i get confuse
i press ctrl+shit+enter or  rightclick it , but nothing happen to me?
please help
Distinguished Expert 2018
Another appoach to get to the elevated command prompt is to rightclick cmd.exe and select "run as administrator". cmd.exe is located in c:\windows\system32.
I thought you would want to use a script or command line. If not, the easiest way is 32138723, simply use explorer and copy these fonts to c:\windows\fonts.
How to Install, Remove and Hide Fonts in Windows 7 
Mohammad Alsolaimanapplication programmer


thanks to all of you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial