>Hi,
>
>I'm trying to use Shellexecute that comes in the VFP foundation classes. I need to run a program that itself accepts parameters but there doesn't appear to be anyway to pass the latter as a parameter to the shellexecute class. Upon digging into the class code, I noticed that an empty string is always sent as the parameter.
>
>Anyone know why this was done and if there is a way around it so that I can send my parameters to the program that I want to Shellexecute to?
>
>TIA
>
>MikeYou can call it directly (I never used the provided class)
DECLARE INTEGER ShellExecute IN shell32;
INTEGER hwnd,;
STRING lpOperation,;
STRING lpFile,;
STRING lpParameters,;
STRING lpDirectory,;
INTEGER nShowCmd
ShellExecute(0,"open","notepad.exe","file1.txt","c:\temp",1)