Microsoft KB Archive/90034

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a

-

SUMMARY
You can execute an MS-DOS command from the FoxPro Command window by using the RUN command. Any messages that the command writes appear on the screen. To suppress this output, use the following syntax in the Command window:

  RUN > NUL  If the MS-DOS command executes successfully, no output appears on the screen. Otherwise, an MS-DOS error message appears.

Alternatively, you can send the output of the MS-DOS command to a file, and use the NULL command to suppress the output from the screen. For example:   !DIR *.EXE > FILENAME.EXT < NULL -or-   RUN DIR *.EXE > FILENAME.EXT < NULL NOTE: The following command   !NET USE \\PATH\PATH displays the message &quot;Command completed successfully&quot; or an error message if the command did not execute successfully. If you change the command to   !NET USE \\PATH\PATH > NUL

the error message is suppressed.

MORE INFORMATION
For example, the following command copies all files with the .DBF extension in the current directory to the floppy disk in drive A without displaying any message if the copy is successful:

  RUN > NUL COPY *.DBF A: If the floppy disk does not have enough space to hold the files, an &quot;Insufficient disk space&quot; message appears on the screen. Additional query words: FoxDos background turn off

Keywords         : Version          : Platform         : Issue type       :
 * }