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
Post a Comment