I have a very vital folder that is being "infested" with unknown files. The 500,000+ files have HEXadecimal Names and most of them are 0 bytes each. This is how the files names look like.
:
08/28/2019 04:20 PM 0 70F55530
08/28/2019 09:00 PM 0 70F55630
08/28/2019 04:37 PM 0 70F56530
08/28/2019 04:55 PM 0 70F57530
08/28/2019 09:34 PM 0 70F57630
08/28/2019 05:12 PM 0 70F58530
08/28/2019 09:52 PM 0 70F58630
:
I did a virus scan but found nothing. Incidentally, my original files are still in the folder.
I have tried deleting the strange files via git-bash:
find . -type f -name "[0-9]*" -delete
and also
find . -type f ! -name "*.*" -delete
but it takes so long.
I'm not sure of the regex to use and I don't want to delete my real files and folders. Is there a faster way of removing only those files with the hexadecimal names?
del *.*? – LPChip Oct 21 '19 at 11:53del ????????.- this command will delete all files which have the name 1-8 chars long without the extension. Of course check that there is no such files which must NOT be deleted. – Akina Oct 21 '19 at 12:55dir ????????.shows too, but it may be faster, especially with /B option. And its output may be saved into a file. – Akina Oct 21 '19 at 13:53find . -type f -size 0b -deleteran for less than one hour. I'm so glad my files are still there even though I failed to understand the cause of the issue... – Drk Oct 22 '19 at 00:48