![]() |
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 19:53 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Question about how to use ^ |
| Printable Version 1,193 / 4 |
| Floor1 nzisisco | Posted 2007-04-27 08:02 |
| 初级用户 Posts 47 Credits 107 | |
|
I know how ^ is used, but I ran into a problem when I used it. With this line, echo echo 1 ^>1.txt >>2.bat, what shows up in 2.bat is echo 1 >1.txt But with this line, echo 1 ^>>1.txt >>2.bat, what shows up in 2.bat is actually echo 1 > I don't know why replacing > with >> makes it stop working. I searched the forum and didn't find any good answer, so I'd appreciate it if an expert could point it out.
|
|
| Floor2 bjsh | Posted 2007-04-27 08:36 |
| 银牌会员 Posts 621 Credits 2,000 | |
| Floor3 bjsh | Posted 2007-04-27 08:37 |
| 银牌会员 Posts 621 Credits 2,000 | |
|
You still haven't really understood the meaning of ^ as an escape symbol;
For special symbols like & ^ > < |, under certain circumstances you need to use ^ to escape them; Each special symbol has to have a ^ added to escape it; So something like >> should be written as ^>^> rather than ^>> |
|
| Floor4 nzisisco | Posted 2007-04-27 17:25 |
| 初级用户 Posts 47 Credits 107 | |
|
Thanks to the moderator for the reply, the problem has already been solved.
|
|
| Floor5 007dna1 | Posted 2008-12-03 21:26 |
| 新手上路 Posts 15 Credits 19 | |
|
What characters can the ^ symbol cancel escaping for???
Can you list them all in detail??? |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |