问题:
I want to prompt the user for a series of inputs, including a password and a filename. 我想提示用户一系列输入,包括密码和文件名。
I have an example of using host.ui.prompt
, which seems sensible, but I can't understand the return. 我有一个使用host.ui.prompt
的示例,这似乎很明智,但我无法理解返回值。
Is there a better way to get user input in PowerShell? 有没有在PowerShell中获得用户输入的更好方法?
解决方案:
参考一: https://en.stackoom.com/question/YL4h参考二: https://stackoom.com/question/YL4h