在PowerShell中提示用户输入 - Prompt for user input in PowerShell

问题:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章