Search code examples
luaexecutable

How do I run an executable using Lua?


I have an executable I want to run using Lua ... how do I do this?

Can't seem to find any documentation anywhere about this.


Solution

  • You can use Lua's native 'execute' command.

    Example:

    os.execute("c:\\temp\\program.exe")
    

    Sources: Lua Guide / os.execute