"Curt Dixon" <(E-Mail Removed)> wrote in message
news:E191D3E6-5E0E-464E-875C-(E-Mail Removed)...
> If I have files
>
> test.tst
> test.tst1
> test.tst2
>
> and I run "dir *.tst" at a cmd prompt, I get back all 3 files. Running
> "dir
> *.ts?" and "dir *.t??" does the same thing. del works the same way (as
> probably most wildcard cmds do).
>
> This causes real problems if I want to delete all .res files but not .resx
> files. Is there any way around this?
Unless you turn off the "Short File Name" (SFN) facility, all file
names have both an SFN and an LFN. Commands using a wild
card will produce a match if either the SFN or the LFN matches.
You will now find that the LFN extension of "test.tst1" is ".tst1".
The SFN extension for the same file ist ".tst". In other words,
there is a match for *.tst.
To see your SFNs, use this command:
dir /x
|