1.

Solve : hide this one!?

Answer»

is it possible to hide this message "Could not found c:\test.xls"
when the file I want to delete does not exist
...echo is off and >nul is already input in the code
any suggestion please?
thanks in advance!if exist C:\test.xls del C:\test.xlsthanks for the reply! I'll try that oneYou were part way to your goal with >nul. There are two streams that console programs use (1) stdout and (2) stderr. Just using >nul redirects stdout but not stderr. The del command uses stderr for its error message.

stdout:

Code: [Select]command>nul
command 1>nul
are equivalent

stderr:

Code: [Select]command 2>nul
redirect both:

Code: [Select]command>nul 2>nul
or

Code: [Select]command 1>nul 2>nul


so this (below) will SHOW no output whether or not c:\test.xls exists:

Code: [Select]del c:\test.xls>nul 2>nul

nice one! both of YOU had a great code, this is really a BIG help to my system! almost PERFECT!!! thank you so much!almost? what else is wrong with it?



Discussion

No Comment Found