When you’re building a batch file it’s often necessary to display status information to the user, but Windows gives you very few tools to help. MessagePop enables creating alerts with styled text, clickable links, optional timeouts, even a 'Do not show' option which allows the user to hide it in future.
This makes for a complicated syntax, but the package includes a sample MessageTest.bat file to show you how it works.
There’s also a separate GUI-based MessageHelper tool to help design your pop-up.
Enter text, choose icons, set your preferred settings, and hit Preview at any time to see how it looks.
Once you’re happy, copy the resulting command to the clipboard and it’s ready for pasting into your script.
MessagePop can be cumbersome to set up, but advanced features like the 'do not show?' option should make it worth the effort.
POPUPDISPLAYMESSAGE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
If you only need to display a simple line of text, though, NirSoft’s NirCmd is far easier to use (nircmd infobox 'text goes here' 'dialog title'), and gives you a host of other abilities as well.
MessagePop is a free application for Windows XP and later.
Thank you for this info, but as Swaminathan.vp stated, once you have a vbs file it's best to just call it directly from the batch file. I assume then that the Yes / No button responses are specified within the batch file?
My main question is this: How do I display the red exclamation mark warning shield icon in the dialogue box (or any red exclamation mark) as well as being able to specify whether you want Yes/No, Ok/cancel, etc as it looks from what you've written above like you have to have one or the other, which I'm surely isn't the case. Also, the number you specified for 'Warning query icon' doesn't work...
Please could you supply a few examples of working batch file script that demonstrates a few of the possibilities, and how to apply actions for clicking on Yes/No, Ok/cancel, etc?