Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Screen Resolution from command line

  • Please log in to reply




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

  • 0




    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