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

Can I use Exec[.....] to send a parameter to batch file?

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
eMpTy3000
Posts: 2
Joined: April 15th, 2009, 5:10 pm

Can I use Exec[.....] to send a parameter to batch file?

Post by eMpTy3000 »

I want to run a batchfile which requires a parameter being passed to it. I tried doing Exec[C:\batch.bat C:\file.tp] but that did not seem to work. (The "C:\file.tp" is the parameter) I tried adding quotes and whatnot, but that didn't work either.

Is this possible?

Thanks!

mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Post by mattcro »

As far as I know it is not possible to pass a parameter to a batch (or executable) file in the Exec command.

Maybe you can use multiple batch files as a workaround - one for each command/parameter pair that you need - where each batch file has the parameter file name "hard coded" in it.

eMpTy3000
Posts: 2
Joined: April 15th, 2009, 5:10 pm

Post by eMpTy3000 »

mattcro wrote:As far as I know it is not possible to pass a parameter to a batch (or executable) file in the Exec command.

Maybe you can use multiple batch files as a workaround - one for each command/parameter pair that you need - where each batch file has the parameter file name "hard coded" in it.
Ok, thanks.

Post Reply