Making it happen
"Dir" command-line wildcard for extensions
Here’s a weird difference between Windows 2003 SP1 and Windows XP SP2: Suppose you have two files in the same folder, a.txt and b.txt_ , the effect of dir *.txt is as follows:
- Windows XP SP2:
a.txt
b.txt_ - Windows 2003 SP1:
a.txt
It’s scary how it performs on SP2 – it can lead to dangerous stuff when you are using DEL to erase files …
| Print article | This entry was posted by andrei on November 21, 2006 at 2:27 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 3 years ago
So how do I make that stop? I just bulk converted (in a test environment) my Office 2003 files to Office 2007. Now I want to move the old versions of the files into an area where I can archive them, and leave the new versions in place.
But xcopy, dir, del all add the unwanted wildcard behavior!
MAKE IT STOP! PUHLEEEEEESE!
help?
about 3 years ago
Sorry I have no idea