Re: system_exec()

new topic     » goto parent     » topic index » view thread      » older message » newer message
andi49 said...
string = "\"C:\\Program Files (x86)\\EuDesigner\\edit.exe\"" 
system_exec(string) -- This works 
puts(1,string&"\n") 
any_key() 

It should.

andi49 said...
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() 

It shouldn't. That makes it look like you have a big txt file called "C:\Program Files (x86)\EuDesigner\edit.exe C:\Program Files (x86)\EuDesigner\license.txt" that you want to run.

andi49 said...
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() 

This should have worked. I'm not sure why it failed. Does something like this work?

string="\"C:\\Windows\\System32\\notepad.exe\""&" "&"\"C:\\Program Files (x86)\\EuDesigner\\license.txt\"" 
system_exec(string) 
puts(1,string&"\n") 
any_key() 

I wonder if spawnvp() simply can't deal with spaces in its arguments but requires them to be quoted. (IMNSHO it shouldn't, but this is windoze after all.) So that suggests another thing to try is this:

string="\"C:\\Windows\\System32\\notepad.exe\""&" "&"\"\\\"C:\\Program Files (x86)\\EuDesigner\\license.txt\\\"\"" 
system_exec(string) 
puts(1,string&"\n") 
any_key() 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu