Launch exe with parameter
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Launch exe with parameter
I am attempting to make a GUI for a simple console application, which only requires one parameter.
How would I:
A) Launch the executable with a parameter
B) (if possible) put the output of said console application into a field, instead of a cmd window?
How would I:
A) Launch the executable with a parameter
B) (if possible) put the output of said console application into a field, instead of a cmd window?
Re: Launch exe with parameter
p4tr1ck,
Use the shell function. The parameter for the shell function is exactly what you would enter in the command line window. Which command do you want to use exactly?
The value returned by the command line is passed on by the shell() function.
Best regards,
Mark
Use the shell function. The parameter for the shell function is exactly what you would enter in the command line window. Which command do you want to use exactly?
The value returned by the command line is passed on by the shell() function.
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Launch exe with parameter
Well, it is a file converter, so you drag the file onto the executable. However, a lot of people don't know how to do that, so I figured I would create a GUI. Would the shell() command achieve this?
Re: Launch exe with parameter
Which command do you want to use exactly?
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Launch exe with parameter
I'm not quite sure, I presume its the default windows parameter for passing a file to open to an application. However, I don't know what that is...
Let me make it clear that nothing is actually typed in the console, it simply displays the output of the conversion. It is used by dragging a file onto the executable.
Let me make it clear that nothing is actually typed in the console, it simply displays the output of the conversion. It is used by dragging a file onto the executable.
Re: Launch exe with parameter
I think Mark is asking, what shell command do you want to use?
Walt
Walt
Walt Brown
Omnis traductor traditor
Omnis traductor traditor
Re: Launch exe with parameter
p4tr1ck ,
Yes, I'm asking about the shell command. Perhaps you could use Rev's launch command. Have a look at the dictionary.
Best,
Mark
Yes, I'm asking about the shell command. Perhaps you could use Rev's launch command. Have a look at the dictionary.
Best,
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode