ID: Q90034
The information in this article applies to:
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 <MS-DOS command>
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
   !NET USE \\PATH\PATH
   !NET USE \\PATH\PATH > NUL
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:
Additional reference words: FoxDos 2.00 2.50 2.50a background turn off KBCategory: kbprg KBSubcategory:
Last Reviewed: April 17, 1995