You might try the ShellExecute() API function:
DECLARE INTEGER ShellExecute IN Shell32 ;
INTEGER @HWND,;
STRING @lpOperation,;
STRING @lpFile,;
STRING @lpParameters,;
STRING @lpDirectory,;
INTEGER @nShowCmd
hWind = 0
lcOperation = "OPEN"
lcFile = "HH.EXE"
lcParameter = ""
lcDirectory = "C:\WINDOWS"
liShow = 0
lnResult = ;
ShellExecute(@hWind,@lcOperation,@lcFile,@lcParameter,@lcDirectory,liShow)
clear DLLS
>Hi Mark -
>
>I already tried that, and it does let me add it, but where do you think I should add it to? I tried applications, and it won't compile, saying the EXE isn't a VFP EXE. So I added it to Other Files, which seemed to work when I compiled, but then errors at runtime ("Run Command Failed"). Would I still run it with the RUN command, now that it's compiled in?
>
>TIA -
> ellen
>
>
>
>>Hi, Ellen! You could try adding the EXE to your project, but I think you will get an
excluded symbol next to it that you will not be able to remove.
Mark McCasland
Midlothian, TX USA