Run EXE from Blitzmax program

BlitzMax Forums/BlitzMax Programming/Run EXE from Blitzmax program

This should work on all three systems. Not certain though.
It uses Skids excellent FreeProcess library.

I have pulled various bits out of my FrameWork Assistant to show you how I implemented the feature:

First, import skidracers module:
Import PUB.FreeProcess

Now create a global TProcess variable:
Global proc:TProcess

When you are ready to launch an external program:
Function RunApp(myapp$)
    ' check if application is still running
    If proc<>Null
        If proc.Status()
            Notify "program still running!"
            Return
        EndIf
    EndIf
    ' run program
    proc=TProcess.Create(myapp$,0)
    If Not Proc
        Notify "Failed to launch "+myapp$
    EndIf
End Function