-2

Can anyone tell me why dir *.asp returns all .asp files but also all .aspx files? It seems dir ignores extensions longer than three. This is really bugging.

Jawa
  • 3,679
Gary
  • 1

1 Answers1

-1

This is because cmd.exe is broken and will ignore extensions past the first 3 characters when using wildcards. You can use:

dir /B *.asp|find /V ".aspx"

to remove the extra items.

barlop
  • 25,198
krowe
  • 5,629