[GLLUG] Windows version of "dialog"
Brian Hoort
hoortbri@msu.edu
Thu, 28 Mar 2002 14:17:18 -0500
At the meeting I mentioned a Windows utility that approximated the
functionality of 'dialog'. It is called msgbox.exe and I got it off the net
somewhere. My second comment, that it cannot handle user input other than
buttons appears to be accurate.
I'll post it to the list if that's acceptable -- is that frowned upon here?
It's a tiny program (54KB). Usage below:
MSGBOX release 1.1 - Prompt for an answer and set errorlevel
Copyright 1995-1998 by David G. Thomas.
Usage: MSGBOX flags "title" prompt_string ...
Flags:
/? Help (this screen)
/BARI Buttons: Abort/Retry/Ignore
/BO Button: OK
/BOC Buttons: OK/CANCEL
/BRC Buttons: Retry/CANCEL
/BYN Buttons: Yes/No
/BYNC Buttons: Yes/No/CANCEL
/Dx Default is button #x (1, 2 or 3)
/F1 Send Console window to the foreground before input
/F2 Send Console window to the foreground after input
/H Hide the console window during the prompt
/I! Icon Exclamation
/II Icon Information
/IQ Icon Question
/IS Icon Stop
/MA Application Modal
/MS System Modal (stays on top)
/MT Task Modal
/Tn Time out after n seconds
prompt_string:
The rest of the line will be the prompt/message string.
If quoted then each quoted string will be on a separate line.
Errorlevels returned:
1 = OK
2 = Yes
3 = Retry
4 = Ignore
5 = No
6 = Cancel
7 = Abort
8 = Time Out
--
Brian Hoort
Agricultural Economics Computer Service
Michigan State University