Re: running another program with system / system_exec

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu