• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4783
  • Last Modified:

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.
0
JordanMrazek
Asked:
JordanMrazek
  • 4
  • 2
1 Solution
 
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
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now