Echo | gives me an error [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-25 04:10:57

问题


So I have this code:

echo unknown command: %2. Usage: firefox /del [history|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?


回答1:


Just so this has an official answer:

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



来源:https://stackoverflow.com/questions/41273173/echo-gives-me-an-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!