Bug returning filenames in directory
I've got an odd problem. When I use:
dir.GetFiles("2003*.*")
one of my results is:
2011001XEAP_1_1.837
This also happens in a command line dir search. Any idea? I should also note, I'm on a 2000 Pro PC, and the directory has over 5000 files in it. When I copy and paste the file into a new directory with no other files, the mask works. I haven't been able to find anything online or in here, but I'm sure I'm not the only person to run into this.
Re: Bug returning filenames in directory
Strange. I just simulated that on my machine and did a commandline dir 2003*.* search and it found nothing (which is right).
Re: Bug returning filenames in directory
I think it may have something to do with the number of files in a directory.
Re: Bug returning filenames in directory
You asked the same question in a previous thread, I tried to copy your setup and had no problems.
Re: Bug returning filenames in directory
I've found something, all though I don't know how to make sense of it, or program around it. Check out the shortened file names:
S:\HTC\Archive>dir /x 2003*
Volume in drive S has no label.
Volume Serial Number is 08C6-B5DE
Directory of S:\HTC\Archive
06/01/2005 08:38a 154 20A234~1.TA1 2003000000148.TA1
06/01/2005 08:39a 261 20030043.997
06/01/2005 08:37a 1,461 20030043.EAP
06/01/2005 09:01a 278 20030043.EFL
06/01/2005 09:01a 1,944 20030043.RPT
06/01/2005 08:38a 928 205D70~1.ZIP 20030043eap.zip
06/01/2005 08:38a 1,461 20C3CA~1.837 20030043eap_1_1.837
06/02/2005 09:07a 1,110 20031530.BCH
06/07/2005 09:52a 2,079 200343~1.DAP 200956189.DAP
06/01/2005 03:00p 8,693 20034B~1.DAP 200950179.DAP
10 File(s) 18,369 bytes
0 Dir(s) 2,909,630,464 bytes free
Why on Earth would GetFiles be searching both the short and long filenames? And how can I make it stop searching the short names?