Running another program from a blitz program

BlitzMax Forums/BlitzMax Beginners Area/Running another program from a blitz program

Terry B.(Posted 2009) [#1]
Is there a way to run another .exe from inside a blitzmax program?


plash(Posted 2009) [#2]
The 'system_' function or the TProcess type.


Terry B.(Posted 2009) [#3]
Um, could you give me an example? I really have no idea what those are.


grable(Posted 2009) [#4]
If you dont know what a Function or Type is, running external executables are the least of your worries ;)

In any case... its worth mentioning that system_ blocks the running program, while TProcess does not.

system_("notepad.exe")

''or

Local proc:TProcess = CreateProcess("notepad.exe")
While proc.Status()
  Print "notepad is still running"
  Delay 500
Wend



Terry B.(Posted 2009) [#5]
Thanks grable that works great!