![]() For the newer windows versions this can be used: wmic path Win32_VideoController get VideoModeDescription,CurrentVerticalResolution,CurrentHorizontalResolution /format:valueĪ script that checks the windows version and then gets the resolution with the wmic: offįor /f "tokens=4,5 delims=. You can use wmic desktopmonitor get screenwidth to get the screens width. ( wmic desktopmonitor get screenheight, screenwidth /format:value).This will not work on windows8/8.1/10. Im hoping it can be used to detect the display resolution and set the. EDIT: A combination with what mhu posted and the wmi I have managed to get a somewhat close to functioning solution. ![]() ![]() This will print the resolutions of all monitors.Įdit. I have only tried to search for any cmdlet or other wmi solutions, that could possibly do this, but have only found how to change the display resolution. With dxdiag though it is not the fastest way: offįor /f "tokens=2 delims=:" %%a in ('find "Current Mode:" ~.txt') do ( The reg cli tool for setting the screen res will do just as well. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |