Main menu:
1 Delete
2 Create
3 Modify
4 Remove
X Exit
Submenu 1 (for Delete):
1 Delete file
2 Delete folder
3 Delete another file
4 Delete another folder
5 Back to Main Menu
Submenu 2 (for Create):
1 Create Virtual
2 Create another Virtual
3 Back to Main Menu
Submenu 3 (for Modify):
1 Modify Virtual
2 Modify another Virtual
3 Back to Main Menu
This is the main menu:
$q = Read-Host "
Please select an option:
1 Delete Files
2 Create New Virtual
3 Modify Existing Virtual
"
Sub-Menu1
$su1 = Read-Host "
Please select an option
1 Delete a file
2 Delete a folder
3 Delete another file
4 Delete another folder
5 Back to main menu
"
How do I take option 5 and bring it back to the main menu?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…