"It would also be useful to say what failed" was a strange response to the code in a comment that provided that information in the form of filename and error code.
File names don't fail. You didn't specify which of the operations on the file name failed.
In reply to Re^8: Need help deleting *.bak files
by ikegami
in thread Need help deleting *.bak files
by MikeDexter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |