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-08-12 03:20
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to hide the window when the bat command runs View 1,398 Replies 11
Original Poster Posted 2009-05-09 07:07 ·  中国 四川 眉山 移动
新手上路
Credits 7
Posts 7
Joined 2009-05-08 08:30
17-year member
UID 144644
Gender Male
Status Offline
I saw this command before but forgot it!

When running a BAT batch file (Windows system), a DOS black screen window will appear!

But for some reason, I don't want it to appear!

The command is probably!

cmd "height 0" "width 0"

Experts, please give me some advice!
Floor 2 Posted 2009-05-09 11:28 ·  中国 江西 南昌 电信
中级用户
★★
Credits 206
Posts 100
Joined 2007-07-09 20:51
19-year member
UID 93566
Gender Male
Status Offline
Floor 3 Posted 2009-05-09 11:44 ·  中国 江西 南昌 电信
中级用户
★★
Credits 206
Posts 100
Joined 2007-07-09 20:51
19-year member
UID 93566
Gender Male
Status Offline
mode con cols=20 lines=5
Floor 4 Posted 2009-05-09 12:28 ·  中国 广东 东莞 电信
银牌会员
★★★
批处理编程迷
Credits 1,916
Posts 752
Joined 2008-12-28 04:30
17-year member
UID 135147
Gender Male
From 广西
Status Offline
精简
=> 个人网志
Floor 5 Posted 2009-05-09 13:08 ·  中国 江西 抚州 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
. 繽紛色彩閃出的美麗是因為它沒有分開每種色彩...>/

我的百度空间: BEYOND超越 为什么用DOS
Floor 6 Posted 2009-05-20 00:34 ·  中国 四川 眉山 移动
新手上路
Credits 7
Posts 7
Joined 2009-05-08 08:30
17-year member
UID 144644
Gender Male
Status Offline
Floor 7 Posted 2009-05-20 00:48 ·  中国 四川 眉山 移动
新手上路
Credits 7
Posts 7
Joined 2009-05-08 08:30
17-year member
UID 144644
Gender Male
Status Offline
Floor 2: What I'm talking about is when running a bat batch file!! It doesn't display!! The black and white DOS window
Floor 3: Thank you, I was looking for this sentence! But why doesn't it work when it's 0!!
Floor 4: Where do you use that! It doesn't seem to work in BAT!!
Floor 5: The command on that website you mentioned, how do you use it! It can't be used in BAT. And that BQT hiding, can't download it. Please, experts, give more guidance!
Floor 8 Posted 2009-05-20 06:47 ·  中国 河北 唐山 电信
初级用户
★★
Credits 85
Posts 52
Joined 2009-01-10 18:22
17-year member
UID 136322
Gender Male
From 湘乡
Status Offline
mode con: width and height seem to not be able to be zero
Floor 9 Posted 2009-05-20 07:34 ·  中国 四川 眉山 移动
新手上路
Credits 7
Posts 7
Joined 2009-05-08 08:30
17-year member
UID 144644
Gender Male
Status Offline
This used to work!

But it doesn't work now!

Do you know any way to do it?
Floor 10 Posted 2009-05-25 02:27 ·  中国 河北 唐山 电信
初级用户
★★
Credits 85
Posts 52
Joined 2009-01-10 18:22
17-year member
UID 136322
Gender Male
From 湘乡
Status Offline
What I collected from the Internet before: echo exit|%ComSpec% /k prompt e 100 B4 00 B0 12 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul
Floor 11 Posted 2009-05-27 06:56 ·  中国 四川 眉山 移动
新手上路
Credits 7
Posts 7
Joined 2009-05-08 08:30
17-year member
UID 144644
Gender Male
Status Offline
Thank you for your guidance. But your this command seems to be full screen!
Floor 12 Posted 2009-05-28 02:56 ·  中国 河北 唐山 电信
初级用户
★★
Credits 85
Posts 52
Joined 2009-01-10 18:22
17-year member
UID 136322
Gender Male
From 湘乡
Status Offline
Really sorry, the owner, didn't see your requirements clearly.

Is this okay? Just the scucopy.vbs file needs to be run twice to delete.


@if exist scucopy.vbs @goto findusb1
@echo Set ws = CreateObject("Wscript.Shell")>scucopy.vbs
@echo ws.run "cmd /c scucopy.bat",vbhide >>scucopy.vbs
@start scucopy.vbs&&exit
:findusb1
del scucopy.vbs
(Add content here)

Also, please let the expert take a look
Forum Jump: