中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-11 07:57
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Solved] Please give some guidance on how to use batch processing to achieve resolution change
Printable Version  18,234 / 65
Floor1 BAT Posted 2006-07-04 20:10
初级用户 Posts 52 Credits 177
In the WINDOWS window, under the XP or 2000 system, how to use batch processing to automatically set the display resolution to the resolution you want. No matter whether the previous display resolution was 800*600 or 1280*1024, change it to 1024*768 or any other desired resolution

[ Last edited by HAT on 2008-10-22 at 19:22 ]
Floor2 electronixtar Posted 2006-07-04 20:13
铂金会员 Posts 2,672 Credits 7,493
It seems that without using third - party commands, it may not work. Unless using debug or output API~~~ It's too complicated and profound.
Floor3 BAT Posted 2006-07-04 20:58
初级用户 Posts 52 Credits 177
Originally posted by electronixtar at 2006-7-4 20:13:
It seems that without using third-party commands, it's not possible unless using debug or output APIs~~~ It's too complicated and advanced

Can batch processing be used to change it if it's only set to a specific resolution, such as 1024*768? Please help everyone
Floor4 fastslz Posted 2006-07-04 21:11
铂金会员 Posts 2,315 Credits 5,493 From 上海
Modifying the registry won't work without restarting, or use the resolution setting program in WinPE. I've forgotten which specific program it is for a long time. I'll check it for you when I have time...
Floor5 fastslz Posted 2006-07-04 22:18
铂金会员 Posts 2,315 Credits 5,493 From 上海
Extracted, but please use this program to adjust the monitor refresh rate parameters!!!
Command format: SETRES hXXXX vXXXX
For example: SETRES h1024 v768 b32 f85 means 1024X768, 32-bit color, monitor refresh rate 85Hz
Remarks: Color depth and monitor refresh rate parameters can be ignored

http://www.iansharpe.com/downloadfiles/SetRes.zip

[ Last edited by fastslz on 2008-2-10 at 04:57 PM ]

Attachments
SETRES.rar (16.31 KiB)
Floor6 BAT Posted 2006-07-04 22:29
初级用户 Posts 52 Credits 177
re fastslz

Thank you, big brother for your help.
Here I want to say thank you to you, big brother. If you have time, I hope you can write a special article about the setup tools in WINPE, and introduce some other setup tools in detail.
Here I want to say thank you to fastslz again.
Floor7 fastslz Posted 2006-07-04 23:51
铂金会员 Posts 2,315 Credits 5,493 From 上海
You're being too polite... No need to thank me....

As for writing an article about the WINPE setup tool, it's easy once you know the trick. Here's a hint: The main WINPE menu program is NU2MENU.EXE, and the menu configuration file is NU2MENU.XML. Open it with Notepad and study it carefully. You can completely DIR your own WINPE by following the example. This method isn't suitable for Microsoft official WINPE.
Floor8 Scott0902 Posted 2006-07-05 00:17
中级用户 Posts 237 Credits 466
Hello, Brother fastslz is so amazing!!! Thank you very much for your small program!!! It has been tested and can run on the Win98 system.
Floor9 jastyg Posted 2006-07-06 10:19
中级用户 Posts 82 Credits 219
I don't know if this applet has protection?
For example, SETRES h1600 v1200 b32 f200
Can this run? If it can, isn't it possible to burn out the monitor?
Floor10 fastslz Posted 2006-07-06 10:38
铂金会员 Posts 2,315 Credits 5,493 From 上海
It is impossible to have 200HZ under the monitor refresh rate of 1600*1200. Whether there is protection depends on whether the monitor has protection. No one does experiments with the monitor. It is estimated that this program treats 200hz as an invalid parameter. Although it is posted, I advise everyone to use it with caution.
Floor11 BAT Posted 2006-07-29 21:13
初级用户 Posts 52 Credits 177
Finally, I want to ask one more question. If I first change the content related to the resolution in the registry, then use taskkill /f /im explorer.exe, and finally use start explorer.exe to achieve the purpose of refreshing explorer, I wonder if this approach is feasible. There are too many contents in the registry, and there are too many places for the resolution. I don't know which one to modify. I don't know which one to modify to change the resolution to the one I want. If any friend knows, can you provide the complete registry path?
Floor12 oracleweb Posted 2006-09-04 21:24
新手上路 Posts 7 Credits 14
What's the use of this? Can't you just operate it in Windows?
Floor13 namejm Posted 2006-09-04 21:33
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Originally posted by oracleweb at 2006-9-4 21:24:
What's the use of this? Can't you just operate it in Windows?


  You're really ignorant and fearless.

  You can view files in Windows, then why does Microsoft still have the dir command? The graphical interface of Windows is already very beautiful, then why does Microsoft keep improving the black CMD thing? -- Why is batch processing called batch processing? Isn't it because it can be batch processed to bring automation? The use of a single command is limited. If you compile them into batch processing, then the functions they exert will be quite amazing. You should learn more about batch processing, use it more, or write a few yourself, and you will have a deep understanding.

[ Last edited by namejm on 2006-9-5 at 07:07 ]
Floor14 electronixtar Posted 2006-09-05 05:57
铂金会员 Posts 2,672 Credits 7,493
I completely agree with the view of the person above. Give it a thumbs up
Floor15 chishingchancn Posted 2006-09-17 19:27
中级用户 Posts 113 Credits 284
If you want to see where the registry is modified for key values, it is suggested that you use software like RegSnap to find out.
1 2 3 45  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023