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!
Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
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?
Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351
-
- Posts: 2
- Joined: April 15th, 2009, 5:10 pm
-
- Forum Supporter
- Posts: 590
- Joined: March 8th, 2006, 1:58 pm
- Location: Scotland
-
- Posts: 2
- Joined: April 15th, 2009, 5:10 pm
Ok, thanks.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.