Question

How can I create a simple popup messagebox from within a shutdown script?

Answer

<p><br /> <i><b>Q)</b>: How can I create a simple popup messagebox from within a shutdown script? </i></p> <p><b>A)</b>: I found out that it is possible to do this:</p> <pre> exec cmd &lt;&lt; &quot;echo msgbox\&quot;your message here\&quot;&gt;a.vbs&amp;a.vbs\n&quot;; </pre> <p><br /> ...so, I've put the following code in my TCL-Shutdown script:</p> <pre> if {$FME_Status == &quot;0&quot;} { exec cmd &lt;&lt; &quot;echo msgbox\&quot;FME-workspace $FME_MacroValues (WORKSPACE_NAME) failed!\&quot;&gt;$FME_MacroValues(WORKSPACE_NAME).vbs&amp;start / WAIT $FME_MacroValues(WORKSPACE_NAME).vbs\n&quot;; file delete $FME_MacroValues(WORKSPACE_NAME).vbs; }; </pre> <p><br /> Very useful when using WorkspaceRunner to run several workspaces in parallel.</p>