回声给我一个错误 [英] Echo | gives me an error

查看:67
本文介绍了回声给我一个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有这段代码:

echo unknown command: %2. Usage: firefox /del [history|cookies]

它给了我:"cookies"不是内部或外部命令,可操作程序或批处理文件.我了解为什么它会给我这个错误,但我不知道如何解决.有什么想法吗?

it gives me: "cookies]" is not a internal or external command, operable program or batch file. I understand why it gives me this error, but i don't know how to fix it. any ideas?

推荐答案

正好有一个正式答案:

批处理符号|是管道符号.因此,必须批量使用标准转义符号^对其进行转义.

The symbol | in batch is the pipe symbol. Therefore it has to be escaped with the standard escape symbol ^ in batch.

这篇关于回声给我一个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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