Page 1 of 1

.dll to Execute .exe .bat and possibly run command lines.

Posted: July 30th, 2008, 4:50 pm
by Blaze89
OK! What?

Forgive me if someone has already invented this, I promised I looked and did a search.
I'm looking for a dll or plugin to execute .exe's and .bat's.
I'm hoping to use it with the menu plugin, to, basically run an irrigation controller.
Thats right, I'm going to attempt to use LCD Smartie to control an embedded system.

I need to, via the menu, end an .exe and stop a removable disk, and having an option to shut it down would be nice. I know how to do all this with such a plugin, but so far the closest thing I have found is MORA's, ExecCmdLine, however I couldn't get it to work.
I'm not sure such a thing will be possible, at least with this version or via the menu, as I know how Smartie hates running a plugin in a plugin, but if anyone could help I would be very gratefull as it is the only thing stopping me so far.

Blaze.

Posted: July 31st, 2008, 9:52 pm
by limbo
Have checked the actions?

Posted: August 1st, 2008, 2:49 pm
by Blaze89
I've had a look in actions, and it appears not to be possible.
I need smartie to open an .exe or .bat when I go to an menu item.
Theres a $file command but thats for text files I think.

Posted: August 1st, 2008, 2:57 pm
by caesar
Is "If __ then Exec[c:\autoexec.bat]" so hidden in the actions menu? ;)

Posted: August 1st, 2008, 4:01 pm
by Blaze89
I have "Execute[C:\autoexec.bat]", but where did you pull the "IF" command from?

Posted: August 1st, 2008, 4:16 pm
by Blaze89
Well I didn't know that smartie had a built in IF command, but it works.
Thank you for your help, limbo & caesar, I should be able to make some progress now.

If anyone wants to know how I go with this, I'll post up progress/results ect. For the record, I am working on a home automation system/irrigation controller.

Again, many thanks, Blaze.