Thanks Sergey,
Yes I looked at this and saw this would do it.
>Claude,
>
>There is a program
RunActd.prg in VFP home directory that runs Activedocument menu item from Tools menu.
>Take a look at cmdRun.Click method
DO CASE
> CASE nMethod = 1
> thisform.hyperLink.NavigateTo(lcFilename)
> CASE nMethod = 2
> thisform.Shelldoc(lcFileName)
> <b>CASE nMethod = 3
> CLOSE ALL
> SYS(4204)
> thisform.hyperLink.NavigateTo(lcFilename)</b>
> CASE nMethod = 4
> DO (lcFilename)
> OTHERWISE
> ASSERT(C_BADMODE_LOC)
>ENDCASE
>Now all you have to do is modify this program to run w/o interraction with user.
>BTW, this program accepts defualt run method as a second parameter.
>
>>I'll be surprised if I get an answer to this one, but, here goes: Is there any programatic way to tell the ActiveDoc being loaded which VFP Runtime library to use. The default seems to be the distributable dll, but, I want to use VFP6.exe because one of the commands in the app requires it. I know you can do this from the toolbar, but, I need a way to do it as a command line argument, config file, or in the app. Definite stars for anyone that helps...