![]() |
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 16:52 |
48,039 topics / 350,124 posts / today 2 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [fixed] How can echo avoid a newline |
| Printable Version 1,259 / 3 |
| Floor1 sinbao | Posted 2007-08-28 17:07 |
| 初级用户 Posts 73 Credits 184 | |
|
There is a file a.bat, with the following contents:
Enter a.bat "bb" in cmd and it will append to the end of file 1.txt: aa (dirctories) But what I want appended to the end of file 1.txt is: aa(dirctories) What should I do? Note: that is, there is no carriage return after aa, it directly appends (dirctories) [ Last edited by sinbao on 2007-8-29 at 01:43 PM ] |
|
| Floor2 DOSforever | Posted 2007-08-29 01:18 |
| 金牌会员 Posts 2,239 Credits 4,639 | |
|
You can use the echos command. Of course, DOS's own command.com and Windows NTs' cmd.exe do not have this command. You can use 4DOS.COM as the command interpreter; under Windows you can use 4NT or Take Command as the command-line environment.
|
|
| Floor3 sinbao | Posted 2007-08-29 09:44 |
| 初级用户 Posts 73 Credits 184 | |
|
The actual problem is this:
I want to generate a classpath string, but this won't work. In the end, ClassPath only gets the last file; it won't concatenate at all. [ Last edited by sinbao on 2007-8-29 at 09:58 AM ] |
|
| Floor4 wudixin96 | Posted 2007-08-29 10:19 |
| 银牌会员 Posts 931 Credits 1,928 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |