>BUILD EXE command doesn't work when is in compiled .EXE program. From .PRG and .APP files work ok, but when I try it from .EXE it says that Feature is not available.
>
>Any solution anyone?
Boban,
The BUILD EXE command isn't supported in EXE. You've to have VFP development installed in order to build EXE. You can VFP as automation server.
oVFP = CREATEOBJECT("VisualFoxpro.Application")
oVFP.DoCmd("BUILD EXE X:\MyMainDevDir\MyApplication\MyEXE.exe " + ;
"FROM X:\MyMainDevDir\MyApplication\MyProject")
oVFP = Null
--sb--