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-23 22:22
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to make the batch start automatically enter full screen mode? View 9,716 Replies 24
Original Poster Posted 2007-01-12 06:47 ·  中国 上海 嘉定区 电信
初级用户
Credits 100
Posts 46
Joined 2006-12-19 04:57
19-year member
UID 73922
Gender Male
Status Offline
As the title.
Also, can you tell me some commands such as limiting the size and width of the CMD window?
Floor 2 Posted 2007-01-12 07:17 ·  中国 四川 德阳 电信
初级用户
Credits 85
Posts 36
Joined 2007-01-02 09:25
19-year member
UID 75254
Gender Male
From 四川德阳
Status Offline
start /max




mode con:cols=80 lines=8【This can set the size and width】

[ Last edited by cmshun on 2007-1-11 at 06:20 PM ]
Floor 3 Posted 2007-01-12 07:19 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  mode con cols=40 lines=10
Floor 4 Posted 2007-01-12 08:13 ·  中国 上海 嘉定区 电信
初级用户
Credits 100
Posts 46
Joined 2006-12-19 04:57
19-year member
UID 73922
Gender Male
Status Offline
I more want to know how to full screen? The method of the 2nd floor is not okay, start /max just runs in maximized mode, not full screen.
Floor 5 Posted 2007-01-12 08:24 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

mode con cols=200 lines=20形
::或者直接Alt+Enter组合键。

```
mode con cols=200 lines=200
::或者直接Alt+Enter组合键。
```
Floor 6 Posted 2007-01-12 08:27 ·  中国 上海 嘉定区 电信
初级用户
Credits 100
Posts 46
Joined 2006-12-19 04:57
19-year member
UID 73922
Gender Male
Status Offline
The length and width set to 200 for both upstairs are not full screen. Of course I know the Alt+Enter combination key. What I want is the effect of Alt+Enter. But it's not entering and then pressing Alt+Enter. It's directly entering this mode. Thanks.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
okliweiok +1 2008-08-21 15:22
Floor 7 Posted 2007-01-12 22:56 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Enter full - screen mode

Thanks to Brother boluor for helping with testing and finding the error~ : )
The error has been corrected~ : )


@echo off


:: Setting: Running in full - screen mode
echo exit|%ComSpec% /k prompt e 100 B4 00 B0 12 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul

chcp 437>nul
graftabl 936>nul


:rem Place any commands below...
dir
pause


 
 
 


Principle: First set the screen to enter the graphics mode 640*480 16 colors, and it will automatically switch to full - screen mode. (It's the same as when playing a game~ : )

Then set the screen to enter the text mode, 80*25 16 colors. In this way, it is equivalent to the full - screen text mode we enter by pressing alt+Enter.

[ Last edited by redtek on 2007 - 1 - 18 at 11:06 AM ]
Recent Ratings for This Post ( 3 in total) Click for details
RaterScoreTime
xiaohacker +1 2007-01-26 01:55
stornager +3 2007-06-19 22:25
PPdos +8 2008-06-21 01:50
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 8 Posted 2007-01-18 23:43 ·  中国 湖北 武汉 教育网
初级用户
★★
Credits 129
Posts 54
Joined 2007-01-04 01:03
19-year member
UID 75376
Gender Male
From 武大信息学部
Status Offline
The method of the brother upstairs doesn't seem to work very well. When entering full screen, I can't see the command line, only the cursor is flashing.
Floor 9 Posted 2007-01-19 00:09 ·  中国 北京 朝阳区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Thanks to Brother boluor for testing and finding the error~ : ) The error has been corrected. Brother, please try again to see if it can be full screen and if there is any garbled code problem~ : )
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 10 Posted 2007-01-19 00:16 ·  中国 湖北 武汉 教育网
初级用户
★★
Credits 129
Posts 54
Joined 2007-01-04 01:03
19-year member
UID 75376
Gender Male
From 武大信息学部
Status Offline
The person upstairs is really serious, setting a good example for us. The modified one is already very good... It's amazing..
Floor 11 Posted 2007-01-26 01:26 ·  中国 江西 上饶 电信
初级用户
★★
Credits 193
Posts 98
Joined 2007-01-17 11:56
19-year member
UID 76803
Gender Male
Status Offline
Received. There are really many experts here. I also saw the MODE CON command in HELP before and didn't pay attention. I didn't expect it has such powerful functions. I learned it today. I will pay more attention to this forum in the future. Thanks
这家伙很聪明 什么都没留下
Floor 12 Posted 2007-06-19 18:25 ·  中国 湖北 黄冈 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
I think not many people understand debug
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Floor 13 Posted 2007-06-19 18:31 ·  中国 湖北 黄冈 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
Can't it just be chcp 936?
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Floor 14 Posted 2007-09-04 15:35 ·  中国 上海 嘉定区 电信
初级用户
Credits 100
Posts 46
Joined 2006-12-19 04:57
19-year member
UID 73922
Gender Male
Status Offline
Sure, that's a great method. Learned it.
Floor 15 Posted 2007-09-06 09:50 ·  中国 湖南 长沙 联通
初级用户
Credits 48
Posts 24
Joined 2007-08-31 17:37
18-year member
UID 96273
Gender Male
Status Offline
@echo off

:: Set: run in full screen mode
echo exit|%ComSpec% /k prompt e 100 B4 00 B0 12 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul

chcp 437>nul
graftabl 936>nul

cd /d c:\
call cmd
pause
Forum Jump: