![]() |
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-13 05:06 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » How do you handle a batch file like this? |
| Printable Version 677 / 2 |
| Floor1 walu | Posted 2004-01-17 00:00 |
| 高级用户 Posts 201 Credits 916 | |
|
The contents of A.BAT are like this:
@echo off type b.TXT echo hello echo bye bye! As you know, after executing type b.TXT it automatically jumps to the step echo hello. Now I want it, after executing type b.TXT, to directly show the prompt, that is A:\>_ without jumping to the step echo hello. Is there any way? Using PAUSE can keep it from jumping to the step echo hello, but it cannot show the prompt A:\>_ that is, I can't input anything. |
|
| Floor2 iceboy | Posted 2004-01-17 00:00 |
| 银牌会员 Posts 512 Credits 1,681 | |
|
What do you mean?
If you don't want the echo commands afterward, then just remove them @echo off type b.txt If you want to insert a cmd-mod in the middle, then do it like this @echo off type b.txt command echo hello echo bye bye! When it executes the command step, A:\> will appear, and if you enter exit it will continue executing what follows... |
|
| Floor3 无妄★模拟 | Posted 2004-01-17 00:00 |
| 初级用户 Posts 35 Credits 280 | |
|
You can do it like this
@echo off type b.txt cd\ a echo hello echo bye bye! Give it a try@! |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |