Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Little scripting help

$
0
0

Rocking the ASCII art menus! Takes us back to 1990…

These days, why bother with all the lines and blocks? If you want a GUI, there are much nicer options. Modern command-line scripts and utilities rarely go to the trouble of that sort of menu.

The PowerShell Host has a built-in PromptForChoice method which you might like. It's what gets used when you set one of the action preference variable to 'Confirm', and so on. Check out http://technet.microsoft.com/en-us/library/ff730939.aspx for an example of it. (In PowerShell.exe, this will be a command-line prompt. In the ISE, it's a GUI pop-up.)


Viewing all articles
Browse latest Browse all 13067

Trending Articles