execute external program
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
execute external program
Is runrev capable of executing a .exe file?
For example, when the user clicks the button the file c:/windows/notepad.exe is opened?
If so, can someone give me a example code?
Thank you!
For example, when the user clicks the button the file c:/windows/notepad.exe is opened?
If so, can someone give me a example code?
Thank you!
Pucker:
put "start '' 'c:/windows/notepad.exe'" into myShell
replace "'" with quote in myShell
get shell(myShell)
Best,
Mark
put "start '' 'c:/windows/notepad.exe'" into myShell
replace "'" with quote in myShell
get shell(myShell)
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
Hi pucker22,
or a bit shorter
Check the docs for more info about "launch".
Best
Klaus
or a bit shorter

Code: Select all
...
launch "c:/windows/notepad.exe"
...
Best
Klaus
Hi Klaus,
I always use the shell function, because the launch command is subject to change and doesn't work correctly in quite a few releases.
Best,
Mark
I always use the shell function, because the launch command is subject to change and doesn't work correctly in quite a few releases.
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