中国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-05 06:36
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Help] How to automatically minimize the DOS window when executing a command?
Printable Version  1,718 / 10
Floor1 flyinthesky Posted 2007-06-23 11:25
初级用户 Posts 17 Credits 34
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 ]
Floor2 flyinthesky Posted 2007-06-23 11:28
初级用户 Posts 17 Credits 34
Please help me, dear experts. Thank you!
Floor3 wudixin96 Posted 2007-06-23 11:42
银牌会员 Posts 931 Credits 1,928
Please search the forum, thank you
Floor4 flyinthesky Posted 2007-06-23 12:06
初级用户 Posts 17 Credits 34
Thanks
Floor5 flyinthesky Posted 2007-06-23 14:42
初级用户 Posts 17 Credits 34
But I want to know, in the command line state, is there any command that can minimize the command line window?
Floor6 zh159 Posted 2007-06-23 16:28
金牌会员 Posts 1,467 Credits 3,687
It is estimated that only cmdow can handle the already opened windows
Floor7 oilio Posted 2007-06-23 17:07
高级用户 Posts 303 Credits 641
Reinvoke itself again, then it can be minimized, and it has to be done cleverly, otherwise there will be an infinite loop.
Floor8 flyinthesky Posted 2007-06-23 18:35
初级用户 Posts 17 Credits 34
Can you tell me the specific steps? Thanks!
Floor9 flyinthesky Posted 2007-06-23 18:37
初级用户 Posts 17 Credits 34
Also, what does "cmdow" mentioned by the user on the 6th floor mean?
Floor10 zh159 Posted 2007-06-23 18:43
金牌会员 Posts 1,467 Credits 3,687
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
Floor11 flyinthesky Posted 2007-06-24 21:57
初级用户 Posts 17 Credits 34
Still don't understand! Depressed!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023