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