Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process Challenge
Message
De
07/11/2001 04:57:46
 
 
À
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:
00578394
Vues:
17
>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.

You can do exactly that using my API_APPRUN class, available for download from the Files section here on UT. It can either run the process synchronously, not returning control to VFP until the process terminates, or asynchronously, letting you poll the termination status at intervals (or on demand) passing control back to VFP immediately (you can do this to let the VFP app continue to run, and poll the status of the launched process whenever you have a VFP process that is dependant on the termination occuring, and blocking or delaying the dependant process.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform