Execute A Program
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Execute A Program
Hi Guys,
I am seeking another way of running a program aside from this:
get shell("start C:\Windows\Temp\Console.exe")
Any Ideas??
Many Thanks,
Matt.
I am seeking another way of running a program aside from this:
get shell("start C:\Windows\Temp\Console.exe")
Any Ideas??
Many Thanks,
Matt.
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Execute A Program
I tend to run programs by double-clicking symbolic links on the desktop.
-
- VIP Livecode Opensource Backer
- Posts: 9834
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Execute A Program
Have you tried the launch command?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Execute A Program
Well, for starters because you probably asked the wrong question.
What I believe you should have asked goes a bit like this:
"How can I launch a Windows program from inwith LiveCode without using a shell command."
-
- VIP Livecode Opensource Backer
- Posts: 9834
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Execute A Program
This being a LiveCode forum, that's how I inferred the question.richmond62 wrote: ↑Sat Sep 26, 2020 9:06 am"How can I launch a Windows program from inwith LiveCode without using a shell command."
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Execute A Program
Well, you are obviously privy to some information which I am not.This being a LiveCode forum, that's how I inferred the question.
Given the number of totally out-of-context spam messages that keep turning up hereabouts, I . . .
-
- VIP Livecode Opensource Backer
- Posts: 9834
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Execute A Program
When in doubt look at a user"s profile. Googie85 has been a part of this community for quite a while, as has contributed to a great many meaningful discussions.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Execute A Program
Thanks: I'll remember that in future.When in doubt look at a user"s profile.
-
- Posts: 11
- Joined: Fri Oct 02, 2020 10:24 am
Re: Execute A Program
In my windows application I run a batch file by pressing a button.
I use the following code:
Maybe it works also with exe files?.
Hope it helps
M.
I use the following code:
Code: Select all
on mouseUp
answer"prompt text"with"closing button text"
launch document "complete Path"
end mouseUp
Hope it helps
M.
Re: Execute A Program
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!