![]() |
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-19 10:09 |
47,814 topics / 349,908 posts / today 0 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » How to use the echo command to write angle brackets (< >) into a file |
| Printable Version 934 / 2 |
| Floor1 kyoiiyb | Posted 2008-06-23 17:41 |
| 新手上路 Posts 4 Credits 10 | |
|
I searched for quite a while and still couldn't find it.
It seems to be some corresponding encoding (I saw it on Baidu Knows), but I still don't know what encoding it actually is. ASCII or ANSI? And I also don't know how to write it. |
|
| Floor2 Climbing | Posted 2008-06-23 21:06 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
You need to explain the environment where your echo command is running, whether it's under pure DOS or under cmd.
|
|
| Floor3 hongewuyan | Posted 2008-06-25 14:37 |
| 初级用户 Posts 29 Credits 65 | |
|
Put a ^ in front of it。。
For example, echo abcd^>efg>a.txt Then the contents of a.txt will be abcd>efg |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |