I'm extracting a medium sized ZIP file which contains thousands of tiny files with different names. Some of these files have names which include illegal character like ":". This causes Windows to be rather unhappy when it tries to extract them and copy them to the destination folder.
It throws Error 0x80070057
. Some sources online calim this is due to a lack of disk space, but that is definitely not true in my case. This error is most liekly due to the file containing illegal caharcters in its name, as the other files copy with no problems.
Windows then asks me to Try Again
or Skip
, once I select try again, it simply replaces any illegal characters with "_" which fixes the porblem just fine.
My question is how do I prevent Windows from asking me thousands of times? I tried checking the Do this for all current items
checkbox, but that has no effect.
This question is completely different from this one. One because I am not using 7Zip and instead am using Windows built in extracter. Two, because that question is about resolving name conflicts and this question is about removing illegal characters from file names.
Add-Type
cmdlet. Let me play with this (as I only found this when your question aroused my curiosity) and I'll post an answer when I have some sample code.