这就是我想要做的:
(
@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
因此,将其复制到剪贴板中。我尝试了以下方法:
(
@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
但这似乎也影响了我的 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^)
FFF
)|clip
嘿!这几乎可行,文本一直复制到“this”中的“s”。它不复制最后的括号,或者显然是 F。有任何想法吗?