Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process Challenge
Message
De
07/11/2001 04:08:26
 
 
À
05/11/2001 22:34:31
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00577777
Message ID:
00578382
Vues:
14
Steven,
Check out FAQ #7789.

Api_apprun is a very handy class that allows you to launch another app without the RUN command. One of the options is LaunchAppAndWait() which puts VFP into a wait state until the other app has terminated. There are other methods that allow you to check if the process is still running and if necessary, you can kill the process. There are also options that allow you to define how the application appears (Normal, Maximized, Minimized or Hidden).

HTH
>I need someone to help me with this. Several people have tried with different approches but none have worked so far.
>
>I have a folder that is populated with .ps files from another app that many users are printing from. My fist step with my watch app is to create a new folder with the base name of each set of files with the same base name then create a STRTOFILE file and put into the new directory also. This I have done with no problem. Note this is done to batch for processing.
>
>The next step is to Run /N2 acrodist.exe &sdewse2(strtofile). This is where my problem lies. I need this to run unattended so I can't phyisically exit Distiller with each batch finishing. So I need a way to halt the execution of the VFP code until the batch is finished. Then run the next one.
>
>I have tried to use FOPEN() and FClose() but then I get an error that Distiller can't open the file randomly.
>
>I need a way to tell that distiller is executing a job and let me know when it is finished.
Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform