1. ShellExecute() and Win XP
- Posted by sergelli Aug 26, 2012
- 1629 views
Hello
Another problem I can not solve.
ShellExecute() works well with Windows 7, even with Wine on Linux.
But with Windows XP, the ShellExecute() function does not work when using parameters.
In short:
shellExecute("open","exe1.exe",SW_SHOWNORMAL) -- works shellExecute("open","exe1.exe arg1 arg2",SW_SHOWNORMAL) -- not works with Win XP
Any idea??
2. Re: ShellExecute() and Win XP
- Posted by sergelli Aug 26, 2012
- 1666 views
I changed the following lines of library win32Lib.we
global procedure shellExecute( object verb, sequence file, atom style) VOID = shellExecuteEx(verb, file, "", "", style, 0)
By
global procedure shellExecute( object verb, sequence file, sequence arg, atom style) VOID = shellExecuteEx(verb, file, arg, "", style, 0)
...and now also ran on XP
Does it have other consequences????
3. Re: ShellExecute() and Win XP
- Posted by ghaberek (admin) Aug 26, 2012
- 1651 views
sergelli said...
I changed the following lines of library win32Lib.we
global procedure shellExecute( object verb, sequence file, atom style) VOID = shellExecuteEx(verb, file, "", "", style, 0)
By
global procedure shellExecute( object verb, sequence file, sequence arg, atom style) VOID = shellExecuteEx(verb, file, arg, "", style, 0)
...and now also ran on XP
Does it have other consequences????
I'm sure you could just call shellExecuteEx directly, no? The "arg" parameter seems to be the varying difference there...
-Greg