Menu within a Menu

Welcome Forums General PowerShell Q&A Menu within a Menu

Viewing 2 reply threads
  • Author
    Posts
    • #271081
      Participant
      Topics: 4
      Replies: 2
      Points: 49
      Rank: Member

      Hi,

      Newbie here.

      I am creating a script to give our IT folks testing options but I am having difficulty showing a menu within a menu.

      If the user select’s option # 2; I would like to show the user a new menu with different options to perform. Any input is appreciated. Thank you in advance.

       

      • This topic was modified 2 days, 5 hours ago by PerDeSi91. Reason: Code view fix
    • #271105
      Participant
      Topics: 5
      Replies: 177
      Points: 686
      Helping Hand
      Rank: Major Contributor

      I can’t read your code.  Make sure you are following directions here and re-post.

    • #271108
      Participant
      Topics: 2
      Replies: 382
      Points: 523
      Helping Hand
      Rank: Major Contributor

      If you add a Start-Sleep -Seconds 5 to either of your functions you’ll see that they’re being called.  They’re then exiting and then returning to the do-until loop.

      You need to run the loop until ($input -eq ‘q’ -or $input -eq ‘1’ -or $input -eq ‘2’)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.