Re: How to run Eu pgm FROM Eu pgm, with PARAMETERS (for 2nd Eu pgm)

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
Dan_M said...

How can I run a Euphoria program FROM a Euphoria program,

Try...

     scode = shellExecuteEx ( "open", "ex.exe", 
       sprintf("%s %s %s", {aCompare, FirstFile, SecondFile}), 0,SW_NORMAL , 0) 

The third parameter to shellExecuteEx is a string - it's what you would have otherwise typed on a command line.

Two more questions: What are the error codes, numerically, for shellExecuteEx,or where are they defined?

and, what if the path/file name includes SPACES in the path, how do I specify that so that a DOS program can handle it?

Dan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu