Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process Challenge
Message
De
07/11/2001 06:50:54
 
 
À
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:
00578415
Vues:
14
You can use Windows Script Host (WSH) to replace the RUN command. It has a parameter to run synchronously so VFP will wait for termination before resuming.
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
#define SYNCH .T.
#define ASYNCH .F.
oShell = createobject("WScript.Shell")
oShell.Run("acrodist.exe &sdewse2(strtofile)",SW_SHOW_NORMAL,SYNCH)
>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.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform