![]() |
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-09-23 18:28 |
47,812 topics / 349,917 posts / today 0 new / 48,274 members |
| DOS批处理 & 脚本技术(批处理室) » How can I execute a bat file without popping up the command line window? |
| Printable Version 2,133 / 6 |
| Floor1 junyee | Posted 2006-06-01 13:59 |
| 中级用户 Posts 112 Credits 253 | |
|
I'm a newbie, just learning DOS.
I'm very interested in batch processing~~ I tried to save @echo off copy G:\01.mp3 G:\mp3 copy G:\02.mp3 G:\mp3 copy G:\03.mp3 G:\mp3 copy G:\04.mp3 G:\mp3 as copy.bat After execution, I still found that the command line window popped up, and it prompted 1 file(s) copied. 1 file(s) copied. 1 file(s) copied. 1 file(s) copied. Is there a way to not pop up the command line window when executing the bat? Confused`~~ |
|
| Floor2 electronixtar | Posted 2006-06-02 18:19 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
There is no solution now. If using VBS, you can use wscript.run, vbhide to achieve it! (In fact, VBS copying is basically not displayed at all~)
|
|
| Floor3 junyee | Posted 2006-06-03 13:22 |
| 中级用户 Posts 112 Credits 253 | |
|
Oh, I'm dizzy~~ I don't know VBS..
I've posted for a few days and only you replied. I thought the problem was too simple and the experts disdained to answer~~ ...... May I ask where there are introductory tutorials on VB??? |
|
| Floor4 Scott0902 | Posted 2006-06-03 14:02 |
| 中级用户 Posts 237 Credits 466 | |
|
There are many posts about hidden batch processing in the forum.
|
|
| Floor5 doscc | Posted 2006-06-03 17:26 |
| 中级用户 Posts 93 Credits 256 From 广东 | |
|
```
You can write it like this in VBS. Modify it according to your requirements. dim fso set fso=createobject("scripting.filesystemobject") fso.copyfile "g:\*.mp3","g:\mp3" ``` |
|
| Floor6 junyee | Posted 2006-06-04 12:09 |
| 中级用户 Posts 112 Credits 253 | |
|
Okay, I'll give it a try. I know nothing about VB at all...
What I mentioned earlier about COPY *.* is just an example... What I want to know is if there's a way for batch processing not to pop up the command line. |
|
| Floor7 willsort | Posted 2006-06-04 14:44 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
Re junyee:
Closed: How to make a batch file not display when executed http://www.cn-dos.net/forum/viewthread.php?tid=18039 How to hide the window that executes batch commands? Urgent, urgent...... http://www.cn-dos.net/forum/viewthread.php?tid=15507 ───────────────── Moderator's Note ───────────────── To save both yours and our time and forum space, please make good use of the forum's "Search" function and web search engines. Link to the forum's search function: http://www.cn-dos.net/forum/search.php Recommended domestic information resource search engine: http://www.baidu.com/ Recommended international information resource search engine: http://www.google.com/ ───────────────── Moderator's Note ───────────────── |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |