Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Sequential execution with a DOS based application
Hi to everyone, I am new at this forum and I have just started developing in vfp and I have the following problem.
I have a prg in vfp 5.0 that runs a DOS based script application using the "Run" command. This application creates 2 new files in a default directory that is later accessed by the following lines in my prg via a FOPEN command.
The thing is, I am getting at times an access conflict on these files as I cant
make sure that the Fopen commands only executes after the other application has finished running. Appart from this, the DOS application doesnt close up after execution, so I dont know exactly when it has definitely let go of the files it has created.
Is there some way I can make execution totally sequential even if I am working in a windows environment? (Tried some things with the file() and sys(16) and even using a timer but none worked a 100pct or were efficient enough). Hope I´ve been clear enough and someone can lend me a hand.
Thanks in advance.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement