>Hi ,
> Can Foxpro run the default program with command line ?
> Such as ! abc.txt or winexec ("abc.txt") then open notepad.
> I try some methods but fail.
Your best approach to launching a document using its registry association is through the ShellExecute() API - VFP6's FFC has a class that implements ShellExecute(). There are also numerous examples in the FAQ and previous threads that show how the API call is used.