TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: GERALD MILLER
from: JONATHAN DE BOYNE POLLARD
date: 1998-04-02 11:05:00
subject: Preventing DEL from displaying things

 TM>> del /q/s/z anti-vir.dat > nul
 GM> I've since had the time to perform a number of "trial runs" and there
 GM> does not seem to be a method to prevent the "messy" screen display
 GM> when using `> nul` (which I've since removed).  
As I said, use the /E switch to the DEL command.  This is the best solution.
The second best solution is to note that errors are sent by the DEL command 
to the standard *error*, and *not* to the standard output.  (All well-written 
commands will do this.  It is a widely accepted convention.)  "> NUL" only 
redirects standard output.  To redirect standard error, use
        del /q/s/z anti-vir.dat >& nul
If you have 4OS2, Take Command for OS/2, or indeed anything other than 4DOS, 
then the syntax can also be
        del /q/s/z anti-vir.dat > nul 2>&1
 ¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.