1. ShellExecute() and Win XP

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??

new topic     » topic index » view message » categorize

2. Re: ShellExecute() and Win XP

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????

new topic     » goto parent     » topic index » view message » categorize

3. Re: ShellExecute() and Win XP

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu