how do we change the windows 7 font size via command line or registry settings

I want to have a batch file or reg file to change the windows 7 font size back and forth to 96dpi and 120 dpi. I found the registry setting under HKEY_CURRENT_USER/Control Panel/Desktop/Windows Metrics. I changed the Applieddpi value, but after logging off and logging back on, the windows restored the setting. Is there any way to achieve this?

Thank you.
JordanMrazekAsked:
Who is Participating?

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

x
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.

CrowaXCommented:
Well since you found the registry value, a quick, but not ideal fix, would be to add a startup script. Just right click the applieddpi in regedit and save it to a location like C:\windows\dpi120.reg. Then make a text file and save it as dpi120.bat. In the file put the following:

regedit.exe /s "c:\windows\dpi.reg"

Then just save the file to the startup folder. It will run on each login. You could also make desktop icons for each bat file and have one be the 120 and another point to a save 96 reg file. Then a user can click the desktop and apply them, if you want them to be able to switch.
0
CrowaXCommented:
Correction: You would want the line in the bat file to match the reg file, so it would be
regedit.exe /s "c:\windows\dpi120.reg"

I left out the 120 in the first example.
0
JordanMrazekAuthor Commented:
The problem is when i change the registry setting, its not getting in effect without log off/log on. And when i log off and log on the registry setting is going back to the old setting.
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

CrowaXCommented:
I see. Is there possibly two spots where the registry gets that information changed? I'm not at my Win7 computer at the moment, but you could try running regshot and be sure nothing else changes. Run regshot first, then change the setting in windows, and run it again for a list of all registry changes. I will also look into this when I get onto my win7 computer.

http://sourceforge.net/projects/regshot/ 
0

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
JordanMrazekAuthor Commented:
Thanks, with regshot i was able to find the right setting to change the font size. It was HKEY_CURRENT_USER\Control Panel\Desktop\LogPixels. the only thing left is to do it without logging off/on. not sure if it is possible to change the font size without log off/on.

Thanks
0
CrowaXCommented:
After some more research, I see a lot of people talking about rebooting or logging off after a change of that key. So maybe it cannot be set without a logoff.
0
LeeTutorretiredCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
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
Windows 7

From novice to tech pro — start learning today.