Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Screen Resolution from command line


  • Please log in to reply

#1
codecraig

codecraig

    Member

  • Member
  • PipPip
  • 61 posts
Is there a way to retrieve the screen resolution via command line? without using a 3rd party application?

thanks
  • 0

Advertisements


#2
darth_ash

darth_ash

    Member 1K

  • Member
  • PipPipPipPip
  • 1,382 posts
U can export from the registry. The default path where screen resolution is located is: HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO\{Address of Video Card (Some no.)}\0000. The values 'DefaultSettings.XResolution' and 'DefaultSettings.YResolution'.

But sometimes ur Video manufacture driver installtion removes these vaules and its own values somewhere else in the registry, if this is the case u will have to look for the values in ur registry.

Use the following command and the values in the key will be exported to c:\tmp.txt:

regedit /e c:\tmp.txt "HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000"

.
U may change the desired path. Also if the resolution values are located somewhere else (which ur manufature's driver instalaltion has changed), U will have to find where the values are located and use the appropriate path in command.

Edited by darth_ash, 15 August 2005 - 12:11 PM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP