Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Well, that's a pretty good explanation of why - but it seems like there isn't a way to then force the dir command to ignore the aspx files?
    – chris
    Commented Jan 28, 2011 at 14:17
  • 1
    @chris: No. But you can either remove the 8.3 names from your system (will likely save you a lot of trouble later), or filter the dir output with dir /b/s *.asp | findstr /ile .asp -- this discards lines that do not end with .asp. Commented Jan 28, 2011 at 14:19
  • according to this answer you can use fsutil 8dot3name strip directory to remove the existing names, no need to rename them
    – phuclv
    Commented Apr 22, 2017 at 16:18
  • Why does FindFirstFile find short names?
    – phuclv
    Commented Jun 12, 2017 at 2:34
  • The behavior can vary between volumes: superuser.com/q/825615/213663#1806041 Commented Aug 28, 2023 at 10:03