>>>I am working on a Project Hook that will make a backup copy of the project currently open. The problem is that FoxPro opens the Project file (and at times others) as exclusive. Does anyone know of a command line method (either in Fox or DOS, or even WINAPI) where I can force a copy to be made to the desired destination?
>>
>>Strtofile(filetostr()) helped me once in a similar situation - don't remember exactly what, just rings a bell.
>>
>>Stool. Won't work with an open project. Too bad.
>
>I have noticed that the File -> Save As menu option will create a copy of the open project. But question is how to automate it. It would also be nice it would copy the project without presenting the Save As dialog. Any ideas?
MODIFY PROJECT myproject.PJX noshow
oPjx=_vfp.Projects.Item(1)
oPjx.ProjectHook = ;
NewObject('MyProjectHook', 'MyClass.vcx')
...but neither oPjx (i.e. the project manager hook) nor the oPjx.ProjectHook have that method to invoke SaveAs().
I tried (with oPjx.visible=.t. so it would be the default thing to save as)
?SYS(1500,"_msysmenu", "_mfi_savas","trtmrt.pjx")
but that got me nowhere. Even with full path,