Delete files in batch with without error message -


i use command

del "info*"  

to delete group of files starting "info". problem there @ least 1 of these files exist,therefore deleted , others times no files exist , and error message happens. need script must not block if these files don't exist.

i @ options del /? nothing me go ahead.

could me, please?

try this:

del "file delete" >nul 2>&1 del "info*" >nul 2>&1 

this sends normal , error messages nul.

del "file delete" 2>nul del "info*" 2>nul 

this sends error messages nul.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -