|
-
Jun 4th, 2005, 11:13 AM
#1
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.
-
Jun 4th, 2005, 11:30 AM
#2
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).
I don't live here any more.
-
Jun 4th, 2005, 11:36 AM
#3
Re: Bug returning filenames in directory
I think it may have something to do with the number of files in a directory.
-
Jun 4th, 2005, 11:44 PM
#4
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.
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jun 13th, 2005, 12:15 PM
#5
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?
Last edited by wild_bill; Jun 13th, 2005 at 12:51 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|