add new font.ttf file to windows 7?

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
Mohammad Alsolaimanapplication programmerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rory de LeurConsultant End-User ComputingCommented:
Start your Explorer windows with elevated privileges... (run as administrator)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
☠ MASQ ☠Commented:
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
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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 programmerAuthor Commented:
Hi mastrasser,
i use TweakUAC but nothing happen

Mohammad Alsolaimanapplication programmerAuthor Commented:
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
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 programmerAuthor Commented:
thanks to all of you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.