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-05 04:24
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] How to automatically minimize the DOS window when executing a command? View 1,717 Replies 10
Original Poster Posted 2007-06-23 11:25 ·  中国 辽宁 沈阳 联通
初级用户
Credits 34
Posts 17
Joined 2007-06-23 10:21
19-year member
UID 92126
Gender Male
Status Offline
After running cmd.exe, when running a command, such as xcopy \s x:\*.* c:\fitk\, it takes a long time to run. Please teach how to make the window run minimized automatically?

@echo off
@xcopy /s/q x:\*.* c:\fitk\
end

Is there a way to add a command directly in the. bat file to make the DOS window minimized?

[ Last edited by flyinthesky on 2007-6-23 at 12:19 PM ]
Floor 2 Posted 2007-06-23 11:28 ·  中国 辽宁 沈阳 联通
初级用户
Credits 34
Posts 17
Joined 2007-06-23 10:21
19-year member
UID 92126
Gender Male
Status Offline
Please help me, dear experts. Thank you!
Floor 3 Posted 2007-06-23 11:42 ·  中国 天津 电信
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
Please search the forum, thank you
Floor 4 Posted 2007-06-23 12:06 ·  中国 辽宁 沈阳 联通
初级用户
Credits 34
Posts 17
Joined 2007-06-23 10:21
19-year member
UID 92126
Gender Male
Status Offline
Thanks
Floor 5 Posted 2007-06-23 14:42 ·  中国 辽宁 沈阳 联通
初级用户
Credits 34
Posts 17
Joined 2007-06-23 10:21
19-year member
UID 92126
Gender Male
Status Offline
But I want to know, in the command line state, is there any command that can minimize the command line window?
Floor 6 Posted 2007-06-23 16:28 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
It is estimated that only cmdow can handle the already opened windows
Floor 7 Posted 2007-06-23 17:07 ·  中国 江苏 连云港 电信
高级用户
★★★
前进者
Credits 641
Posts 303
Joined 2007-01-10 02:57
19-year member
UID 76009
Gender Male
Status Offline
Reinvoke itself again, then it can be minimized, and it has to be done cleverly, otherwise there will be an infinite loop.
我相信总有一天,总会遇到一个人可以相濡以沫、相吻以湿!
Floor 8 Posted 2007-06-23 18:35 ·  中国 辽宁 沈阳 联通
初级用户
Credits 34
Posts 17
Joined 2007-06-23 10:21
19-year member
UID 92126
Gender Male
Status Offline
Can you tell me the specific steps? Thanks!
Floor 9 Posted 2007-06-23 18:37 ·  中国 辽宁 沈阳 联通
初级用户
Credits 34
Posts 17
Joined 2007-06-23 10:21
19-year member
UID 92126
Gender Male
Status Offline
Also, what does "cmdow" mentioned by the user on the 6th floor mean?
Floor 10 Posted 2007-06-23 18:43 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by flyinthesky at 2007-6-23 18:37:
Also, what does "cmdow" mentioned by floor 6 mean?

http://www.cn-dos.net/forum/viewthread.php?tid=27275
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
flyinthesky +2 2007-06-25 23:30
Floor 11 Posted 2007-06-24 21:57 ·  中国 辽宁 沈阳 联通
初级用户
Credits 34
Posts 17
Joined 2007-06-23 10:21
19-year member
UID 92126
Gender Male
Status Offline
Still don't understand! Depressed!
Forum Jump: