Re: How to run Eu pgm FROM Eu pgm, with PARAMETERS (for 2nd Eu pgm)
- Posted by DerekParnell (admin) Jul 11, 2009
- 1211 views
Dan_M said...
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?
- The error codes are documented here. However there is a bug in the function. Instead of returning the error code, it returns !0 if it succeeds and 0 if it fails. I'll fix this too.
- You should be able to use spaces in the file string without problems ...
res = shellExecuteEx("open", "c:\\program files\\myapps\\special app.exe", ...)