>I have been using ShellExecute without difficulty in my development environment (using Windows Vista) which I declare in a function like this:
>
>
>DECLARE INTEGER ShellExecute IN shell32.dll INTEGER handle, STRING @ oper, ;
> STRING @ ifile, STRING @ iparam, STRING @ ipath, INTEGER showcmd
>
>
>The in the form I invoke the ShellExecute with variables like so:
>
> =ShellExecute(0,"open",lcFile,"",lcPath,1)
>
>I prepopulate the variables lcFile and lcPath appropriately. This works fine in my development machine. But when I installed the program on my portable computer using Windows 7 nothing happens. No error, no message. Nothing. Why doesn't this work? What am I missing?
>
>I checked the portable computer in the Windows subdirectory and found Shell32.dll as I expected. I am stumped. I'd appreciate help.
What happens if you double click on this file in Windows Explorer?
Have you checked what does ShellExecute return (it may return an error code)? Check
Open any document FAQ #8134
If it's not broken, fix it until it is.
My Blog