Reviewed at
MessageBox from Claudiosoft is a freeware 32-bit command line utility for Windows 9x/NT/2000 that you can use in batch files to launch a message box and get an answer from the user.
The possible answers are : YES/NO, OK/CANCEL, YES/NO/CANCEL.
Here is an example :
@echo off MSGBOX.EXE "This is a sample message.\nDo you want to continue ?" "MessageBox Test" YESNOCANCEL if errorlevel 7 goto NO if errorlevel 6 goto YES if errorlevel 2 goto CANCEL REM if errorlevel 1 goto OK goto fin :no echo You don't want to continue. goto fin :yes echo You want to continue. goto fin :cancel echo You don't want to go further. goto fin :ok echo ok goto fin :fin
Warning : Remember that the command "if errorlevel 6" means that the return value is larger or equal than 6. That is why the different cases are always put in a decreasing order.
Should you find a bug or have a suggestion, please send us a mail. Your feedback is very important to us.
Simply unzip the file to a directory of your choice (you may need Winzip for that). Open a DOS prompt, go to the directory where msgbox.exe has been decompressed and type msgbox to get the syntax.
Back to ClaudioSoft Software |