| View previous topic :: View next topic |
| Author |
Message |
dfdub
Joined: 27 Nov 2007 Posts: 5
|
Posted: Tue Nov 27, 2007 1:47 am Post subject: LUA Command for Executing External File |
|
|
Is there anyway I can execute an external file ( like an*.exe file) within LUA?
Ex:
If [Event] Then
exec (C:\localfile.exe)
endif
Spent several days on wiki and google and no luck. I see there is a dofile command but I believe this only executes other LUA scripts. |
|
| Back to top |
|
 |
lhf
Joined: 20 Feb 2006 Posts: 175 Location: Rio de Janeiro, Brazil
|
Posted: Tue Nov 27, 2007 4:20 am Post subject: |
|
|
| Try os.execute. |
|
| Back to top |
|
 |
zet
Joined: 12 Nov 2004 Posts: 289 Location: Germany
|
|
| Back to top |
|
 |
dfdub
Joined: 27 Nov 2007 Posts: 5
|
Posted: Wed Nov 28, 2007 5:37 pm Post subject: |
|
|
| good find, thank you. |
|
| Back to top |
|
 |
|