Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Execute cmdline program

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
MORA
Posts: 14
Joined: March 7th, 2007, 5:21 pm

Execute cmdline program

Post by MORA »

Version 0.1 released 08-03-2007

This is a plugin for smartie to execute a console program and return the output.
Made on request, probaly has a few bugs.

Usage.
1) Place dll in plugin dir.
2) Call the dll where you need it.

Exsample.
$dll(ExecCmdLine,1,cmd.exe,/C dir c:\)
$dll(ExecCmdLine,2,1,)
$dll(ExecCmdLine,2,5,)
$dll(ExecCmdLine,2,9,)

The first command wont return anything, only execute the program and store the data.
The second command will return the line (1,5,9 starts from 0)

***Note: Im not sure if smartie always reads and executes the first line before the others, if not this wont work as it

should. (Data will be from the previous run)

***Note2: REMEMBER the /C when using cmd.exe to run something, if you dont smartie will hang because the dll never

returns.

The plugin is in C# source is included.

Author
MORA (Pm at forums.lcdsmartie.org if needed)
You do not have the required permissions to view the files attached to this post.

lazybones
Posts: 16
Joined: September 21st, 2006, 7:56 am

Post by lazybones »

Great! Should be able to have some fun with this.

lazybones
Posts: 16
Joined: September 21st, 2006, 7:56 am

Post by lazybones »

I am trying to use this to run batch files but it always just ends up with errors.

Any suggestions? Maybe I have the syntax wrong.

Edit: Never mind, I got it work by placing quotes around my file name.

Post Reply