RUN /N Not Working Correctly with MS-DOS Batch FileLast reviewed: April 29, 1996Article ID: Q106660 |
The information in this article applies to:
SUMMARYIn FoxPro for Windows versions 2.5, 2.5a, and 2.5b, the order in which lines of code are executed within a program file may seem to be altered when you are using the RUN command with a /N parameter to execute an MS-DOS executable or batch file. The /N parameter stands for NOWAIT and allows program execution to continue before the command is completed. This makes it seem as if the MS-DOS batch file is not being executed until after the other commands.
MORE INFORMATIONIn FoxPro for Windows, the /N parameter is used for calling Windows-based applications with the RUN command. The /N parameter of the RUN command has an optional numeric value that can be included immediately after it to specify how the Windows-based application is opened. The possible settings include /N1, /N2, /N3, /N4, and /N7. These parameters are not intended for use with MS-DOS executables or batch files. If any of these parameters are used to call an MS-DOS executable or batch file, Windows will execute the file in the background and FoxPro will remain the active application.
Steps to Reproduce the Behavior
To correct this situation, remove the /N parameter from the RUN command. For example:
RUN runtest.batThis allows FoxPro to execute the RUN command first and then execute the following code after returning from the RUN command.
REFERENCES"Language Reference," L3-840
|
Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.5a 2.5b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |