作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何在PowerShell session 中输入"is"作为交互式问题的答案?我知道,在Bash中,Yes
是在提示符下回答"is"的工具。在我的情况下,我无法抑制提示。
我正在运行的脚本停止在
Please reply "yes" if you want to continue:
最佳答案
使用ECHO对我有用。我在Powershell脚本中运行RSKeyMgmt.exe,它提示是(Y)/否(N)。所以当我这样做ECHO Y | RSKeyMgmt.exe...
它没有提示问题,并且命令已正确执行。
因此,我认为ECHO 'someoption'
也应适用于其他情况。
关于powershell - 如何在Powershell中自动回答 “yes”提示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14071012/
我是一名优秀的程序员,十分优秀!