It looks like wmic is on its last legs … DUHīut I do have a problem with the code, because as it is if I run it as is it does nothing, it never goes to the second section, which would work if it got there. Of course, because the version is NOT lss 62. The good news is that if I use this piece then I get 1920 x 1080. Not sure what the "version" is actually referring to ? On the Win 10 laptop that i'm using its version 100. So if I understand how it works the version has to be established first, then jump to the relevant section. Anyway Initially when I tested the above I was getting the very same as what I got with the code I posted, just nothing. Hi Jack, saw your post a little while ago, thank you so much. ::wmic path Win32_VideoController get VideoModeDescription,CurrentVerticalResolution,Cur rentHorizontalResolution /format:valueįor /f "tokens=* delims=" in ('wmic path Win32_VideoController get CurrentHorizontalResolution /format:value') do (įor /f "tokens=* delims=" in ('wmic path Win32_VideoController get CurrentVerticalResolution /format:value') do ( :: set " wmic_query=wmic desktopmonitor get screenheight, screenwidth /format:value "įor /f "tokens=* delims=" in ('wmic desktopmonitor get screenwidth /format:value') do (įor /f "tokens=2 delims=" %%# in do set "x=%%#"įor /f "tokens=* delims=" in ('wmic desktopmonitor get screenheight /format:value') do (įor /f "tokens=2 delims=" %%# in do set "y=%%#"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |