相关疑难解决方法(0)

在批处理文件的括号内转义括号

这就是我想要做的:

(
@echo This is some code that is
@echo Important to echo exactly as-is
@echo Even if I use parenthesis
@echo for something (like this)
)|clip
Run Code Online (Sandbox Code Playgroud)

所以将其复制到剪贴板中.我尝试过以下方法:

(
@echo This is some code that is
@echo Important to echo exactly as-is
@echo Even if I use parenthesis
@echo for something ^(like this^)
)|clip
Run Code Online (Sandbox Code Playgroud)

但这似乎也影响了我的WANTED括号因为我收到错误.为了测试这个,我简单地完成了:

(
@echo This is some code that is
@echo Important to echo exactly as-is
@echo Even if I use parenthesis
@echo for something ^(like this^) …
Run Code Online (Sandbox Code Playgroud)

batch-file parentheses

32
推荐指数
2
解决办法
3万
查看次数

标签 统计

batch-file ×1

parentheses ×1