Three Ways to Use the RUN Command in FoxPro for WindowsLast reviewed: April 29, 1996Article ID: Q95304 |
The information in this article applies to:
SUMMARYThe RUN command functions differently in Microsoft FoxPro for Windows than in Microsoft FoxPro for MS-DOS. In FoxPro for Windows, the RUN command can be used in three different ways to execute MS-DOS commands and programs, as detailed below.
MORE INFORMATION
Method 1During installation, FoxPro for Windows creates a program information file (PIF) named FOXRUN.PIF in its default directory. The PIF file controls the behavior of RUN commands, such as RUN DIR. To edit FOXRUN.PIF, start the Microsoft Windows PIF Editor, choose the Open command from the File menu, and select FOXRUN.PIF from the FoxPro directory. Please note the following:
Method 2To invoke the MS-DOS command prompt window in FoxPro, execute the following command:
RUN DOSPRMPT.PIFYou can now execute multiple MS-DOS commands at the MS-DOS command prompt. To return to FoxPro, type "exit" (without the quotation marks). Note: This active MS-DOS session will be displayed in full screen or in a window, depending on the Display Usage setting in the DOSPRMPT.PIF file.
Method 3Create a customized PIF file for each program, batch file, or command to be executed, and launch it by executing the following command:
RUN /<option> <PIF filename>This approach allows programs and commands to be executed without disruption of the FoxPro screen. Options available as parameters are listed below:
Option Result ---------------------------------- n1 Active and normal size n2 Active and minimized n3 Active and maximized n4 Inactive and normal size n7 Inactive and minimizedFor example, RUN /n2 BACKIT.PIF will run BACKIT.PIF in an active and minimized MS-DOS session. NOTE: The .PIF must be set up to run in a window, not full screen, in order for the example provided to work correctly (it will flash full screen otherwise). NOTE: In order for the batch file to finish and return control, an EXIT command must be issued as the last statement of the .BAT file.
|
Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a 2.50b 2.60
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |