Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winword.exe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01058585
Message ID:
01058598
Vues:
17
RunAndWait("winword.exe", "c:\temp\test.doc")
 
PROCEDURE RunAndWait(cApplication, cParameters)
      LOCAL cCmd, oShell
 
      IF VARTYPE(m.cParameters) = "C" And Not EMPTY(m.cParameters)
            cCmd = '"' + cApplication + '" "' + cParameters + '"'
      ELSE
            cCmd = '"' + cApplication + '"'
      ENDIF
 
      oShell = CreateObject("WScript.Shell")
*      oShell.Run(cCmd, 1, .T.)  && wait for the process' termination
      oShell.Run(cCmd, 1, .F.)  && FoxPro app keeps running
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform