Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winword.exe
Message
From
13/10/2005 07:52:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
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:
01058600
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
>
Anatoliy,
Does this really wait for you? (Checking a word property's type with automation does).
PS: For VFP6 I think you've typo. Vartype() doesn't exist.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform