如何在Windows批处理文件中回显>> someText [英] How to echo >>someText in a Windows batch file

查看:54
本文介绍了如何在Windows批处理文件中回显>> someText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在控制台上打印确切的文本 >> someText

I want to print to the console the exact text ">>someText"

我尝试

echo abb >>"cdd eee"

将不打印任何内容并创建文件 cdd ,其中包含abb文本。

but that will print nothing and create file cdd with abb text inside it.

<$ c应该使用什么语法$ c> echo 可以吗?

推荐答案

您必须转义特殊字符,例如> 和插入符 ^

you have to "escape" special chars like > with a caret ^:

echo abb ^>^>"cdd eee"

这篇关于如何在Windows批处理文件中回显&gt;&gt; someText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆