How to run an executable from lua?

502 Views Asked by At

I am trying to start an executable by lua. Lua function is called in a thread by c#. os.execute starts a .bat file, which is kept at the same location as the program but not able to start the program.

os.execute('D:/startApplication.bat')
os.execute('D:/application.exe')

The top line works while the bottom one doesn't.

This question differs from How do I run an executable using Lua? because I am using lua in .net environment. And solution given in that question is not working for me.

0

There are 0 best solutions below