China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 03:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Solved] Please give some guidance on how to use batch processing to achieve resolution change View 17,766 Replies 65
Original Poster Posted 2006-07-04 20:10 ·  IANA 局域网IP(Private-Use)
初级用户
★★
Credits 177
Posts 52
Joined 2006-06-04 12:00
20-year member
UID 56562
Status Offline
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 ]
Floor 2 Posted 2006-07-04 20:13 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
It seems that without using third - party commands, it may not work. Unless using debug or output API~~~ It's too complicated and profound.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-07-04 20:58 ·  IANA 局域网IP(Private-Use)
初级用户
★★
Credits 177
Posts 52
Joined 2006-06-04 12:00
20-year member
UID 56562
Status Offline
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
Floor 4 Posted 2006-07-04 21:11 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
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...
Floor 5 Posted 2006-07-04 22:18 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
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, Credits to download 1 pts, Downloads: 805)
Floor 6 Posted 2006-07-04 22:29 ·  IANA 局域网IP(Private-Use)
初级用户
★★
Credits 177
Posts 52
Joined 2006-06-04 12:00
20-year member
UID 56562
Status Offline
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.
Floor 7 Posted 2006-07-04 23:51 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
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.
Floor 8 Posted 2006-07-05 00:17 ·  中国 广东 广州 天河区 电信
中级用户
★★
Credits 466
Posts 237
Joined 2005-10-12 20:53
20-year member
UID 43413
Status Offline
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.
Floor 9 Posted 2006-07-06 10:19 ·  中国 江苏 镇江 电信
中级用户
★★
Credits 219
Posts 82
Joined 2005-10-29 10:56
20-year member
UID 44240
Status Offline
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?
www.jastyg.com
www.efengchi.com
Floor 10 Posted 2006-07-06 10:38 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
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.
Floor 11 Posted 2006-07-29 21:13 ·  IANA 局域网IP(Private-Use)
初级用户
★★
Credits 177
Posts 52
Joined 2006-06-04 12:00
20-year member
UID 56562
Status Offline
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?
Floor 12 Posted 2006-09-04 21:24 ·  中国 上海 上海乾万网络(QianWan_Network)有限公司(电信出口)
新手上路
Credits 14
Posts 7
Joined 2006-09-04 00:01
19-year member
UID 61790
Status Offline
What's the use of this? Can't you just operate it in Windows?
Floor 13 Posted 2006-09-04 21:33 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
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 ]
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 14 Posted 2006-09-05 05:57 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
I completely agree with the view of the person above. Give it a thumbs up

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 15 Posted 2006-09-17 19:27 ·  中国 广东 东莞 电信
中级用户
★★
Credits 284
Posts 113
Joined 2006-07-27 02:30
19-year member
UID 59326
Status Offline
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.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
8856106 -1 2007-05-31 12:55
1 2 3 5 Next ›
Forum Jump: