私はPOWERシェルの世界に戻ってVBスクリプトから来ています 現在、私は メインメニューと複数サブのメインメニューでコンソールアプリケーションを開発中です。Powershellの複数選択メニューとサブメニュー
私は例えばカスケード効果のように動作するようにメニューシステムを希望:
---------------------------------------------------------------------
Main Menu
clear
write-host "A"
write-host "B"
write-host "C"
write-host "D"
#When the user choose a letter the use would then
#forwarded to the letter A menu
$Choice = read-host ''"Please enter your Choice"
--------------------------------------------------------
Menu A
#If the user selects any of the options available from (A-Test1 to A-Test3) in #Menu A for example A-Test1:
#The menu A-Test1 will show up and display a menu of a list of
#actions to perform or return the user back to the menu A.
write-host "A-Test1"
write-host "A-Test2"
write-host "A-Test3"
write-host "A-Test4"
write-host "Exit " # Exit will return the user back to the main menu
# To select another choice.
$select = read-host ''"Please select from menu A:"
あなたが試したことや何がうまくいかなかったかを示すと、助けを得ることができます。 – Jeff