![]() |
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-10 17:39 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Hide the window when running a BAT |
| Printable Version 2,640 / 13 |
| Floor1 bob1989 | Posted 2007-12-30 20:13 |
| 中级用户 Posts 144 Credits 322 | |
|
Haven't been on the forum for a long time
` I really miss everyone Posting some code for hiding the window when running a BAT` @echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit :begin REN the code to run` Hehe |
|
| Floor2 luckboy45 | Posted 2007-12-30 20:34 |
| 中级用户 Posts 212 Credits 487 | |
|
Uh.... thanks, OP, but there is already a dedicated thread for this...
|
|
| Floor3 HAT | Posted 2008-01-16 00:26 |
| 版主 Posts 5,017 Credits 9,023 | |
|
10 approaches to running batch files hidden
http://www.cn-dos.net/forum/viewthread.php?tid=23846 |
|
| Floor4 zyz0304360 | Posted 2008-01-16 08:46 |
| 中级用户 Posts 123 Credits 257 From 烟台 | |
|
Bookmarked
|
|
| Floor5 wangyezhumeteor | Posted 2008-01-18 07:48 |
| 初级用户 Posts 11 Credits 22 | |
|
I'm learning too
|
|
| Floor6 bigfaint | Posted 2008-01-18 17:21 |
| 初级用户 Posts 30 Credits 70 | |
|
Useful stuff
|
|
| Floor7 zzy293 | Posted 2008-04-10 19:28 |
| 新手上路 Posts 7 Credits 16 | |
|
I want to see posts with more ideas, so I'll just bump this first.
|
|
| Floor8 MX30892182 | Posted 2008-05-17 02:35 |
| 新手上路 Posts 5 Credits 10 From 海南三亚 | |
|
OP's code doesn't work
That @echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit and start /min xx.bat will both still flash a window, and when the machine lags it's very easy to clearly see what's in the window |
|
| Floor9 joyn | Posted 2008-05-17 03:34 |
| 中级用户 Posts 105 Credits 280 From 广西 | |
|
Can it be hidden?
|
|
| Floor10 xygulu | Posted 2008-11-13 12:35 |
| 新手上路 Posts 9 Credits 10 | |
|
Bookmarked
|
|
| Floor11 freezing2688 | Posted 2008-11-13 18:13 |
| 新手上路 Posts 8 Credits 8 | |
|
Seems like it doesn't work. It still flashes once when run. Because the machine is lagging?
|
|
| Floor12 terxiuz | Posted 2008-11-13 19:59 |
| 新手上路 Posts 2 Credits 2 | |
|
Not bad, it just flashes the window once
|
|
| Floor13 laoyao2007 | Posted 2008-11-14 10:45 |
| 新手上路 Posts 8 Credits 8 | |
|
Not bad, it does flash once
|
|
| Floor14 crystal0808 | Posted 2008-11-26 09:59 |
| 新手上路 Posts 20 Credits 6 | |
|
It still flashes. Is there any way that doesn't flash and also doesn't use vbs or the like?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |