Re: running another program with system / system_exec
- Posted by ChrisB (moderator) Oct 02, 2013
- 1412 views
Hi Jim and Kay
Thanks
This is the code (should be fairly self explanatory, but I cannot seem to get past the spaces issue.
----------------------------------------------------------------------------------------------------------------- global procedure List13Click() --show the clicked image ----------------------------------------------------------------------------------------------------------------- sequence showFile, sys_command showFile = GetItem(List13) showFile = GetText(Edit25) & "\\" & showFile --List13 is the chosen file --Edit25 is the path to the file sys_command = '"' & GetText(Edit32) & ' ' & GetText(Edit25) & "\\1054-20081022-7055-current-21456-i.jpg" & '"' --Edit32 is the path to the executable and the executable at the end of the string --the file in quotes would be raplaced by the chosen file. system_exec(sys_command, 0) end procedure --***************************************************************************
Chris