These are the Support Forums for FSUIPC and related products.

These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.

Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.

Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE

Run external progra...
 
Notifications
Clear all

[Solved] Run external program through LUA

Posts: 8
Registered
Topic starter
(@gronden)
Joined: 5 months ago

Hi, 

I'm trying to run an external program through a LUA file using the following command:

handle, error = ext.run("c:\smartsim\batc_2.exe")

Unfornately it seems to not have affect.

Could please address about how I could solve the issue?

Thanks and KR

Joe


2 Replies
Posts: 225
Moderator
(@fsuipc-support)
Joined: 5 months ago

The backslash '\' character is used to designate escape characters in lua (see https://www.codecademy.com/resources/docs/lua/strings). If you need to use it as a backslash you need to repeat it, so try:

handle, error = ext.run("c:\\smartsim\\batc_2.exe")

John


Reply
Posts: 8
Registered
Topic starter
(@gronden)
Joined: 5 months ago

Hi,

that solved the issue!

Thanks a lot

Joe

 


Reply