![]() |
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 07:55 |
47,811 topics / 349,897 posts / today 2 new / 48,255 members |
| DOS批处理 & 脚本技术(批处理室) » [fixed] A very basic batch file question, but I just can't do it |
| Printable Version 2,378 / 7 |
| Floor1 formatted | Posted 2002-12-10 00:00 |
| 初级用户 Posts 26 Credits 179 | |
|
I want to start the Tianhui Chinese character support system first, and then run DM. How should this batch file be written? I hope some kind person can help me, many thanks
[ Last edited by HAT on 2008-11-6 at 18:09 ] |
|
| Floor2 Wengier | Posted 2002-12-10 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
| Floor3 formatted | Posted 2002-12-11 00:00 |
| 初级用户 Posts 26 Credits 179 | |
|
That's exactly what I did! But it doesn't work. It can only start TW.EXE, and then it tells me there's a command error. I put one line in AUTOEXEC: CALL DM.BAT, then made DM:
@ECHO OFF TW DM It won't work |
|
| Floor4 Wengier | Posted 2002-12-11 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Isn't this recursively calling the DM.BAT file?
|
|
| Floor5 formatted | Posted 2002-12-11 00:00 |
| 初级用户 Posts 26 Credits 179 | |
|
I've figured it out now, many thanks to the site admin for helping. I looked through a lot of old DOS books, but they all explained it too vaguely.
|
|
| Floor6 闪猛 | Posted 2002-12-30 00:00 |
| 中级用户 Posts 69 Credits 327 | |
|
Adding parameters after TW works a bit better. This is how I use it:
@ECHO OFF tw /np /n3 > nul DM /M The OP can give it a try |
|
| Floor7 nre | Posted 2002-12-30 00:00 |
| 银牌会员 Posts 361 Credits 1,210 | |
|
Run TW first and see if there are any errors. If there are, post the error message. If there aren't, then run DM and see if there are any problems. If there aren't, use this program segment. When using DM in a batch file, it's best to add the extension name to prevent files with the same name.
|
|
| Floor8 wwmmc | Posted 2008-11-06 14:28 |
| 初级用户 Posts 62 Credits 35 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |