Article ID: 141551 - Last Review: February 15, 2005 - Revision: 4.2 How to hide the FoxPro Run Command window in Visual FoxProThis article was previously published under Q141551 On This PageSUMMARY
By using the WinExec Windows API function, you can execute an MS-DOS
command or program without the user seeing the FoxPro Run Command window
or another MS-DOS session.
MORE INFORMATION
The following program creates a sample function that executes an MS-DOS
command or program and keeps the MS-DOS window hidden. The program takes
one parameter, the command to be executed.
To maintain control over the MS-DOS window, the program sends the command through a PIF file. To keep this window hidden, use the Windows PIF Editor to make the following changes to the PIF file you use (this example uses Foxrun.pif in the Visual FoxPro directory):
Code sample | Article Translations
|
Back to the top
