Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winword.exe
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01058585
Message ID:
01058598
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform