phan Posted March 21, 2007 Share Posted March 21, 2007 I searched for such tool but did not find so I wrote myself. Maybe some of you can make use of this tiny toolFeatures:- standard styles (yes/no, ok/cancel, abort/retry,...) and icons- selectable default button with timeout option- only 1KBDownload: msgbox.cab Link to comment Share on other sites More sharing options...
ricktendo Posted March 21, 2007 Share Posted March 21, 2007 Dude this is sweet... might be awesome for my INF uninstallers Link to comment Share on other sites More sharing options...
uid0 Posted March 22, 2007 Share Posted March 22, 2007 I've used wprompt before, but at 5kb it's now looking bloated Link to comment Share on other sites More sharing options...
phan Posted March 23, 2007 Author Share Posted March 23, 2007 oh the old good WBAT . Just forgotten Link to comment Share on other sites More sharing options...
phan Posted March 26, 2007 Author Share Posted March 26, 2007 improved version can display countdown timer like thisdownload: msgbox2.rar Link to comment Share on other sites More sharing options...
ricktendo Posted March 26, 2007 Share Posted March 26, 2007 OK I got the message boxes but n00b question:How do i use the choices? meaning when i select OK or Cancell how do I use the number to go to a choice? Link to comment Share on other sites More sharing options...
phan Posted March 26, 2007 Author Share Posted March 26, 2007 (edited) use errorlevel, for example: msgbox "Setup will continue in %%d seconds." "Setup" 65 15 if errorlevel 2 goto :cancel rem *** put your stuff here in case the user clicks on OK or timed out *** :cancelHere are the errorlevels returned:0 Timed out1 OK2 Cancel3 Abort4 Retry5 Ignore6 Yes7 NoYou can also use %ERRORLEVEL% as environment variable, i.e.if "%ERRORLEVEL%"=="5" goto :ignore if "%ERRORLEVEL%"=="4" goto :retry if "%ERRORLEVEL%"=="3" goto :abort Edited March 26, 2007 by phan Link to comment Share on other sites More sharing options...
rajesh.kumar Posted March 27, 2007 Share Posted March 27, 2007 (edited) wonderful my friend. thank u very much. ive been looking for this kind of app to execute cmds based on the user interest. u have fulfilled my interest. Youve just got my 200th post. Edited March 27, 2007 by rajesh.kumar Link to comment Share on other sites More sharing options...
uid0 Posted March 27, 2007 Share Posted March 27, 2007 Quality Link to comment Share on other sites More sharing options...
phan Posted March 28, 2007 Author Share Posted March 28, 2007 thank u all @rajesh: I'll wait for ur 999th post btw, note on the double percent sign %%d above: this is because calling in cmd-file. If you run msgbox from other program, use only one percent sign %d (like printf())And the number 65 in the example above is sum of 1+64 (OK Cancel + Information Icon). You may combine following box styles:Buttons: 0 OK 1 OK Cancel 2 Abort, Retry, Ignore 3 Yes, No, Cancel 4 Yes, No 5 Retry, CancelIcon: 16 Error 32 Question 48 Exclamation 64 InformationDefault button: 256 make 2nd button default 512 make 3rd button default Link to comment Share on other sites More sharing options...
rajesh.kumar Posted July 21, 2007 Share Posted July 21, 2007 is there a way to modify the caption of buttons like OK, Cancel etc Link to comment Share on other sites More sharing options...
uid0 Posted July 22, 2007 Share Posted July 22, 2007 Buttons: 0 OK 1 OK Cancel 2 Abort, Retry, Ignore 3 Yes, No, Cancel 4 Yes, No 5 Retry, CancelThe first param is the messagebox text, the second is the window title, third is the sum of the buttons + icon + default, fourth is the timeout in seconds. Link to comment Share on other sites More sharing options...
asgeirk Posted September 21, 2007 Share Posted September 21, 2007 Could you add a switch to always return errorlevel 0. I would like to use msgbox.exe as a program in MS SMS, and errorlevel <> 0 cause a stop.thanx for an excellent program Link to comment Share on other sites More sharing options...
Aake Posted July 8, 2009 Share Posted July 8, 2009 Msgbox.exe - virus alert ???My Avira Personal Antivirus send alarm when unpacking msgbox.cabTrue virus ??? Link to comment Share on other sites More sharing options...
uid0 Posted July 8, 2009 Share Posted July 8, 2009 msgbox.cmd contains the text "format c:" - try changing that to something else and scan the extracted files again?virustotal.com seems busy at the moment. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now