launch executable with command line params

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
churchken
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Sun Apr 15, 2007 2:54 pm

launch executable with command line params

Post by churchken »

Hi, all,

Using the "launch" command within a stack, the following "batch" file can be started with this content:
HistData /AUTO "C:sym.dat"

"HistData" is the name of an executable program that requires the subsequent command line parameters in order to correctly work. Launching the .bat file with this content works fine.

However, I'd like to avoid the batch file use, and directly launch the executable program within my stack. Is there a way to pass the "/Auto "C:sym.dat" information to the launched executable?

Thanks in advance for any ideas.
Ken
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: launch executable with command line params

Post by Mark »

Ken,

The following might work:

Code: Select all

put shell("HistData /AUTO" && quote & "C:sym.dat" & quote) into myResult
Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
churchken
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Sun Apr 15, 2007 2:54 pm

Re: launch executable with command line params

Post by churchken »

Thanks, Mark, I'll give it a try.
Ken
Post Reply