Resolution batch processing can be set based on the machine name
If "% computername %" = "name1" setres h800 v600 B32 f85 If "% computername %" = "name2" setres h1024 v768 B32 f85 If "% computername %" = "name3" setres h1280 v960 B32 f75 Please use this program to adjust the display refresh rate parameter! Command Format: setres hxxxx vxxxx [bxx] [FXX] For example, setres h1024 v768 B32 f85 means 1024x768 32-bit color display update rate 85Hz Note: The color bit and display update rate parameters can be ignored. @ Echo off For/F "delims =" % I in ('wmic shorttopmonitor get screenheight ^, screenwidth/value') do set "% I"> NUL 2> NUL If not exist config. ini exit For/F "delims =" % I in ('findstr/I "heigh = width =" config. ini ') do set "% I"> NUL 2> NUL Echo config configuration mode % heigh % × % width % Echo current display mode % screenheight % × % screenwidth % Ping-N 3 127.1> NUL 2> NUL If % screenheight % screenwidth % gtr 12801024 goto setting800600 If % screenheight % screenwidth % equ 800480 goto setting800600 Findstr/I/c: "heigh = % screenheight %" config. INI | (findstr/I/V/C: "heigh =" config. INI> config. X &> config. X echo heigh = % screenheight % & move/y config. X config. INI) Findstr/I/c: "width = % screenwidth %" config. INI | (findstr/I/V/C: "width =" config. INI> config. X &> config. X echo width = % screenwidth % & move/y config. X config. INI) Exit : Setting800600 Findstr/I/V/C: "heigh =" config. INI> config. X &> config. X echo heigh = 800 & move/y config. X config. ini Findstr/I/V/C: "width =" config. INI> config. X &> config. X echo width = 600 & move/y config. X config. ini |