Re: system_exec()

new topic     » goto parent     » topic index » view thread      » older message » newer message
BRyan said...
 
-- Name this file test.exw and run it with euiw.exe This code tested 
-- Examine your quotes and compare to these. 
 
include std/console.e  
sequence string  
  
string = " \"C:\\Program Files (x86)\\EuDesigner\\edit.exe\" "  
system_exec(string) -- This works  
puts(1,string&"\n")  
any_key()  
 

?
This allready works...
Again... with working code included...

include tinewg.exw 
include std/console.e 
sequence string,string1 
string = "\"C:\\Program Files (x86)\\EuDesigner\\edit.exe\"" 
system_exec(string) -- This works 
puts(1,string&"\n") 
 
any_key() 
 
 
string="\"C:\\Program Files (x86)\\EuDesigner\\edit.exe C:\\Program Files (x86)\\EuDesigner\\license.txt\"" 
 
system_exec(string) -- This not 
puts(1,string&"\n") 
 
any_key() 
 
string="\"C:\\Program Files (x86)\\EuDesigner\\edit.exe\""&" "&"\"C:\\Program Files (x86)\\EuDesigner\\license.txt\"" -- This not. Just Starts the Editor 
system_exec(string) 
puts(1,string&"\n") 
 
any_key() 
 
string1=ShortFileName("C:\\Program Files (x86)\\EuDesigner\\edit.exe") 
string=ShortFileName("C:\\Program Files (x86)\\EuDesigner\\license.txt") 
 
system_exec(string1&" "&string) -- This does what it should do!!!! Starting the Editor with the file loaded 
puts(1,string1&" "&string) 
 
any_key() 

ShortFilename() just creates an 8.3 Filename using GetShortFileNmae() from the Win32Api
Any help is really welcome
Maybe i just misunderstood how to use system_exec()
Andreas

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

Search



Quick Links

User menu

Not signed in.

Misc Menu