I do not know if this will be of interest to the winbatch community. While investigating screen resolution, I came across the command utility DUMPEDID. I was able to use this utility within a winbatch script to create a text file that contained information regarding resolutions supported by my monitor. It also contained data regarding the monitor itself. Since one of the pieces of data was a registry key, I believe this information is being retrieved from the registry. This text file contains 2 sets of information. I believe this is because my video card has 2 display adapters.
Sample text follows...
DumpEDID v1.01
Copyright (c) 2006 Nir Sofer
Web site: http://www.nirsoft.net
*****************************************************************
Registry Key : DISPLAY\DEL4005\5&197e6c17&0&10000084&01&00
Monitor Name : DELL 1704FPT
Serial Number : Y42995AJCBMR
Manufacture Week : 43 / 2005
ManufacturerID : 44048 (0xAC10)
ProductID : 16389 (0x4005)
Serial Number (Numeric) : 1128418642 (0x43424D52)
EDID Version : 1.3
Display Gamma : 2.20
Vertical Frequency : 56 - 76 Hz
Horizontal Frequency : 30 - 81 KHz
Image Size : 33.8 X 27.0 cm (17.0 Inch)
Maximum Image Size : 34 X 27 cm (17.1 Inch)
Maximum Resolution : 1280 X 1024
Support Standby Mode : Yes
Support Suspend Mode : Yes
Support Low-Power Mode : Yes
Support Default GTF : No
Digital : Yes
Supported Display Modes :
720 X 400 70 Hz
640 X 480 60 Hz
640 X 480 75 Hz
800 X 600 60 Hz
800 X 600 75 Hz
1024 X 768 60 Hz
1024 X 768 75 Hz
1280 X 1024 75 Hz
1152 X 864 75 Hz
1280 X 1024 60 Hz
*****************************************************************
*****************************************************************
Registry Key : DISPLAY\DEL4005\5&618e1e9&0&10000084&01&00
Monitor Name : DELL 1704FPT
Serial Number : Y42995AJCBMR
Manufacture Week : 43 / 2005
ManufacturerID : 44048 (0xAC10)
ProductID : 16389 (0x4005)
Serial Number (Numeric) : 1128418642 (0x43424D52)
EDID Version : 1.3
Display Gamma : 2.20
Vertical Frequency : 56 - 76 Hz
Horizontal Frequency : 30 - 81 KHz
Image Size : 33.8 X 27.0 cm (17.0 Inch)
Maximum Image Size : 34 X 27 cm (17.1 Inch)
Maximum Resolution : 1280 X 1024
Support Standby Mode : Yes
Support Suspend Mode : Yes
Support Low-Power Mode : Yes
Support Default GTF : No
Digital : Yes
Supported Display Modes :
720 X 400 70 Hz
640 X 480 60 Hz
640 X 480 75 Hz
800 X 600 60 Hz
800 X 600 75 Hz
1024 X 768 60 Hz
1024 X 768 75 Hz
1280 X 1024 75 Hz
1152 X 864 75 Hz
1280 X 1024 60 Hz
*****************************************************************
I think that a winbatch script could be created that reads this file to display this data and maybe process the resolution data to display allowable resolutions for this monitor(this text file does not contain color depth).
The following is a 2 line example of executing this command line utility to create the above text file.
coms = Environment("COMSPEC")
RunWait(coms, "/c c:\dummy1\dispedid\dumpedid.exe >monitor.txt")