为什么这个cleartool命令在批处理文件中失败?
我已经从命令行运行了以下命令,并且成功了
cleartool find . -type f -exec "cleartool describe -fmt \"Filename:%[name]p:type:%[type]p\n" \"%CLEARCASE_PN%"\"" > D:\temp\type.txt
我尝试将相同的命令放入批处理文件中,但它失败并显示以下输出
cleartool: Error: Bad Command line unterminated quoted string
cleartool: Error: Can't exec "(null)": the handle is invalid
有人可以告诉我魔术线应该是什么样子吗?
我可以将它粘贴到 perl 文件中,这样更容易吗?
我尝试了网站上的各种建议,但未能解决。
I have run the following command from the command line and it has been succesfull
cleartool find . -type f -exec "cleartool describe -fmt \"Filename:%[name]p:type:%[type]p\n" \"%CLEARCASE_PN%"\"" > D:\temp\type.txt
I have tried putting the same command in a batch file but it fails with the follwing output
cleartool: Error: Bad Command line unterminated quoted string
cleartool: Error: Can't exec "(null)": the handle is invalid
Can anyone please show me what the magic line SHOULD look like?
I can stick it into a perl file is that is easier?
I have tried the various suggestions on the site but I have not managed to resolve.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将“
%
”加倍,否则 DOS 将其视为“空”字符:(并且您有一些双引号缺少 '
\
')You need to double your '
%
', otherwise it is considered as a 'null' character by DOS:(And you had some double quotes missing an '
\
')