問題:
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