Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ os.execute, but without the drawbacks?
os.execute, but without the drawbacks?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Wed 22 Nov 2006 12:06 PM (UTC) Amended on Wed 22 Nov 2006 12:09 PM (UTC) by Worstje
|
Message
| Hello,
I wrote a little helper application, and I wanted my script to run it occasionally. It will pop any old windows back up or start over as a whole, so I won't have to start it manually. However, in the case the application wasn't running, os.execute blocks the scripts execution, and on top of that you have the fact it pops a CMD window up.
Maybe I overlooked something, but how can I do something simple like the Windows WinExec or CreateProcess functions?
PS: I need to be able to pass parameters, in case that's important.
PS2: What is it with me looking for 20 minutes searching for solutions, and after I post I finally find a solution? Gah.
http://www.gammon.com.au/forum/?id=6581 will most likely solve my problem. Thanks Nick! | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
5,981 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top