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 INFORMATIONMethod 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.PIF You 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:
For 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 query words: VFoxWin FoxWin 2.50 kbvfp300
Keywords : FxprgGeneral |
Last Reviewed: August 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |