Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files opened exclusive.
Message
De
28/01/2009 22:43:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/01/2009 15:23:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01376828
Message ID:
01377981
Vues:
15
>>>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,

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform