Powershell
Example of a message box
[void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') $result = [Microsoft.VisualBasic.Interaction]::MsgBox ("Do you agree?", 'YesNoCancel,Question', "Respond please") switch ($result) { 'Yes' { "Ah good" } 'No' { "Sorry to hear that" } 'Cancel' { "Bye..." } }
Last Updated (Wednesday, 13 May 2009 16:12)