š» Software
cmd.exe: "del *.txt" also removes *.txt1 etc
Freshabout 2 months ago
Mar 15, 20261240 viewsConfidence Score0%
0%
Problem
Possible Duplicate: WinXP dir command: 3 and 4 char extensions are the same? I have been annoyed by a strange behavior of cmd.exe for a long time (at least WinXP and Windows7). A command like will also remove files (any number of characters after '.txt' will do). Is this a well known bug or what?
Error Output
del *.txt
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix ā Awaiting Verification
Fix for: cmd.exe: "del *.txt" also removes *.txt1 etc
Low Risk
It's an occasionally-encountered somewhat-known? An explanation of the behavior is here, complete with a possible work-around. Summary: It comes from the way NTFS handles short (8.3) filenames, for compatibility with older stuff that can't handle "nā¦
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix