Page 1 of 1
execute external program
Posted: Sat Jun 28, 2008 2:57 am
by pucker22
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!
Posted: Sat Jun 28, 2008 8:45 am
by Mark
Pucker:
put "start '' 'c:/windows/notepad.exe'" into myShell
replace "'" with quote in myShell
get shell(myShell)
Best,
Mark
Posted: Sat Jun 28, 2008 11:37 am
by Klaus
Hi pucker22,
or a bit shorter
Code: Select all
...
launch "c:/windows/notepad.exe"
...
Check the docs for more info about "launch".
Best
Klaus
Posted: Sat Jun 28, 2008 12:24 pm
by Mark
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
Posted: Sat Jun 28, 2008 1:08 pm
by Klaus
Dag Mark,
AHA! Good to know!
Thanks for the hint, will also switch to "shell"
Best
Klaus
Posted: Sat Jun 28, 2008 9:22 pm
by paul_gr
If using the shell function you will probably want to use
set the hideConsoleWindows to true
to stop the console window flashing on and off before the exe is called.
Paul