Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API_APPRUN w/Parameters
Message
From
04/08/2005 18:56:58
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01038381
Message ID:
01038776
Views:
25
Don't you have to install WSH on the client machine for this to work?
That was my main concern going down this path.

>>Sorry, I was short on time.
>>This is the application name right bofore it calls the create process.
>>
>>NOTEPAD.EXE c:\temp\test.txt
>>
>
>As an alternative (I do not use Ed's class, so I do not know what extras or advantages it has), a simple way of running notepad and waiting would be using WScript.Shell Object
>
>
>loShell = Createobject('WSCript.shell')
>loShell.Run('Notepad.exe c:\temp\test.txt', 1, .t.)
>
>
>The .T. indicates that the program execution should stop and wait notepad to finish, the 1 is the window style, other values are
>
>
>0 Hides the window and activates another window.
>1 Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
>2 Activates the window and displays it as a minimized window.
>3 Activates the window and displays it as a maximized window.
>4 Displays a window in its most recent size and position. The active window remains active.
>5 Activates the window and displays it in its current size and position.
>6 Minimizes the specified window and activates the next top-level window in the Z order.
>7 Displays the window as a minimized window. The active window remains active.
>8 Displays the window in its current state. The active window remains active.
>9 Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
>10 Sets the show-state based on the state of the program that started the application.
>
Previous
Reply
Map
View

Click here to load this message in the networking platform