I wanted a way to not show the MS-DOS prompt while I was working and the Event Log Emailer was running. So I found two methods to have the Event Log Emailer or any MS-DOS prompt not show up while a batch is executing.

Method 1: To have an MS-DOS Batch file run in a minimized window Create a shortcut to the Batch file. Right-click the shortcut and click properties. In the properties dialogue, find the program tab and choose run “minimized” in the pull-down box. Run the Batch file from the shortcut.
Method 2: To have an MS-DOS Batch file run in a hidden window: In these circumstances, there is no MS-DOS window, nor any corresponding Taskbar button, so the Batch Code should begin @ECHO OFF and end with CLS and/or EXIT, or the process may stall invisibly.

For example, if the Batch file to be run in a hidden window is named C:\WORK\MYBATCH.BAT, create the following .VBS file:

CreateObject(“Wscript.Shell”).Run “C:\WORK\MYBATCH.BAT”,0

Requires Windows Script Host installed. Double-click or otherwise execute the .VBS file, for example, with the START command: start MyFile.VBS to run the Batch file invisibly.