weird bug with windows dir command?

Ask the few things google does not know

Moderator: Dictators in Training

weird bug with windows dir command?

Postby Lueyen » Wed Apr 16, 2008 2:24 pm

the following is a result for doing "DIR TLD*.XML"
Notice the very first file should not match the filter.

X is mapped windows NTFS drive the command was run from an xp box
There were other files out there that began with "TLM" that did not show up in the directory listing.

Anyone have any idea as to what might cause this?

Volume in drive X has no label.
Volume Serial Number is 742C-0224

Directory of X:\BOOutBox

04/16/2008 05:18 AM 1,117 TLM1000804160618301271912.xml
04/16/2008 12:47 PM 3,955 TLD0804161347211272536.xml
04/16/2008 12:47 PM 2,745 TLD0804161347271272537.xml
04/16/2008 12:47 PM 3,543 TLD0804161347501272539.xml
04/16/2008 12:49 PM 5,223 TLD0804161349071272540.xml
04/16/2008 12:50 PM 3,538 TLD0804161350251272541.xml
04/16/2008 12:51 PM 1,849 TLD0804161351171272543.xml
04/16/2008 12:51 PM 2,010 TLD0804161351221272544.xml
04/16/2008 12:52 PM 2,011 TLD0804161352251272545.xml
04/16/2008 12:52 PM 1,788 TLD0804161352401272546.xml
04/16/2008 12:53 PM 1,360 TLD0804161353251272547.xml
04/16/2008 12:53 PM 1,358 TLD0804161353401272548.xml
04/16/2008 12:53 PM 2,319 TLD0804161353581272549.xml
04/16/2008 12:56 PM 2,576 TLD0804161356051272550.xml
04/16/2008 12:57 PM 3,941 TLD0804161357471272551.xml
04/16/2008 12:58 PM 2,258 TLD0804161358111272552.xml
04/16/2008 01:00 PM 2,319 TLD0804161400111272553.xml
04/16/2008 01:00 PM 2,678 TLD0804161400291272554.xml
04/16/2008 01:00 PM 1,786 TLD0804161400441272555.xml
04/16/2008 01:06 PM 2,319 TLD0804161406201272556.xml
04/16/2008 01:08 PM 2,005 TLD0804161408591272557.xml
04/16/2008 01:09 PM 1,851 TLD0804161409361272559.xml
04/16/2008 01:11 PM 2,319 TLD0804161411421272561.xml
04/16/2008 01:12 PM 2,265 TLD0804161412241272563.xml
04/16/2008 01:12 PM 2,491 TLD0804161412541272565.xml
04/16/2008 01:13 PM 3,109 TLD0804161413481272567.xml
04/16/2008 01:16 PM 2,439 TLD0804161416381272568.xml
04/16/2008 01:16 PM 3,543 TLD0804161416591272569.xml
04/16/2008 01:17 PM 2,319 TLD0804161417261272570.xml
04/16/2008 01:18 PM 3,108 TLD0804161418021272571.xml
04/16/2008 01:18 PM 2,893 TLD0804161418351272572.xml
04/16/2008 01:18 PM 1,843 TLD0804161418421272574.xml
04/16/2008 01:19 PM 2,258 TLD0804161419291272575.xml
04/16/2008 01:20 PM 2,267 TLD0804161420321272576.xml
04/16/2008 01:21 PM 1,841 TLD0804161421151272578.xml
04/16/2008 01:21 PM 2,675 TLD0804161422001272579.xml
04/16/2008 01:23 PM 2,319 TLD0804161423421272580.xml
04/16/2008 01:23 PM 3,104 TLD0804161423541272581.xml
04/16/2008 01:24 PM 1,786 TLD0804161424211272582.xml
04/16/2008 01:24 PM 2,001 TLD0804161424331272583.xml
04/16/2008 01:25 PM 3,281 TLD0804161425391272584.xml
04/16/2008 01:27 PM 2,319 TLD0804161427211272585.xml
04/16/2008 01:28 PM 2,000 TLD0804161428541272586.xml
04/16/2008 01:29 PM 2,258 TLD0804161429121272587.xml
04/16/2008 01:29 PM 3,107 TLD0804161429301272588.xml
04/16/2008 01:30 PM 4,795 TLD0804161430211272589.xml
04/16/2008 01:31 PM 2,011 TLD0804161431301272590.xml
04/16/2008 01:32 PM 2,002 TLD0804161432241272591.xml
04/16/2008 01:33 PM 2,429 TLD0804161433121272592.xml
04/16/2008 01:34 PM 2,319 TLD0804161434491272593.xml
04/16/2008 01:35 PM 2,423 TLD0804161435371272594.xml
04/16/2008 01:35 PM 2,687 TLD0804161435551272595.xml
04/16/2008 01:37 PM 2,680 TLD0804161437491272596.xml
04/16/2008 01:39 PM 2,269 TLD0804161439191272597.xml
04/16/2008 01:39 PM 3,111 TLD0804161439521272598.xml
04/16/2008 01:40 PM 3,624 TLD0804161440551272599.xml
04/16/2008 01:41 PM 2,261 TLD0804161441041272600.xml
04/16/2008 01:41 PM 3,104 TLD0804161441431272601.xml
04/16/2008 01:42 PM 2,004 TLD0804161442041272602.xml
04/16/2008 01:42 PM 1,793 TLD0804161442161272603.xml
04/16/2008 01:42 PM 3,517 TLD0804161443011272604.xml
04/16/2008 01:43 PM 3,511 TLD0804161443431272605.xml
04/16/2008 01:43 PM 2,005 TLD0804161444011272606.xml
04/16/2008 01:44 PM 3,102 TLD0804161444251272607.xml
04/16/2008 01:45 PM 2,202 TLD0804161445141272608.xml
04/16/2008 01:45 PM 2,674 TLD0804161445381272609.xml
04/16/2008 01:47 PM 2,328 TLD0804161447171272610.xml
04/16/2008 01:47 PM 4,105 TLD0804161447291272611.xml
04/16/2008 01:48 PM 4,059 TLD0804161448561272612.xml
04/16/2008 01:52 PM 2,672 TLD0804161452141272613.xml
04/16/2008 01:53 PM 2,259 TLD0804161453081272614.xml
04/16/2008 01:53 PM 2,258 TLD0804161453591272615.xml
04/16/2008 01:54 PM 1,360 TLD0804161454231272616.xml
04/16/2008 01:54 PM 1,799 TLD0804161454591272617.xml
04/16/2008 01:55 PM 3,124 TLD0804161455531272618.xml
04/16/2008 02:01 PM 2,265 TLD0804161501171272619.xml
04/16/2008 02:05 PM 2,316 TLD0804161505451272620.xml
04/16/2008 02:07 PM 4,801 TLD0804161507421272621.xml
04/16/2008 02:07 PM 1,786 TLD0804161507571272622.xml
04/16/2008 02:09 PM 2,852 TLD0804161509131272624.xml
04/16/2008 02:09 PM 2,257 TLD0804161509341272626.xml
04/16/2008 02:10 PM 1,139 TLD0804161510361272627.xml
04/16/2008 02:11 PM 2,267 TLD0804161512001272628.xml
83 File(s) 212,264 bytes
0 Dir(s) 54,019,883,008 bytes free
Raymond S. Kraft wrote:The history of the world is the history of civilizational clashes, cultural clashes. All wars are about ideas, ideas about what society and civilization should be like, and the most determined always win.

Those who are willing to be the most ruthless always win. The pacifists always lose, because the anti-pacifists kill them.
User avatar
Lueyen
Dictator in Training
Dictator in Training
 
Posts: 1793
Joined: Tue Mar 09, 2004 2:57 pm

Re: weird bug with windows dir command?

Postby brinstar » Wed Apr 16, 2008 8:15 pm

TLDR
compost the rich
User avatar
brinstar
Cat Crew
Cat Crew
 
Posts: 13133
Joined: Tue Mar 09, 2004 1:45 pm
Location: 402

Re: weird bug with windows dir command?

Postby Lueyen » Wed Apr 16, 2008 10:13 pm

Raymond S. Kraft wrote:The history of the world is the history of civilizational clashes, cultural clashes. All wars are about ideas, ideas about what society and civilization should be like, and the most determined always win.

Those who are willing to be the most ruthless always win. The pacifists always lose, because the anti-pacifists kill them.
User avatar
Lueyen
Dictator in Training
Dictator in Training
 
Posts: 1793
Joined: Tue Mar 09, 2004 2:57 pm

Re: weird bug with windows dir command?

Postby brinstar » Wed Apr 16, 2008 11:23 pm

compost the rich
User avatar
brinstar
Cat Crew
Cat Crew
 
Posts: 13133
Joined: Tue Mar 09, 2004 1:45 pm
Location: 402

Re: weird bug with windows dir command?

Postby Lueyen » Thu Apr 17, 2008 12:49 am



I expected better :P
Raymond S. Kraft wrote:The history of the world is the history of civilizational clashes, cultural clashes. All wars are about ideas, ideas about what society and civilization should be like, and the most determined always win.

Those who are willing to be the most ruthless always win. The pacifists always lose, because the anti-pacifists kill them.
User avatar
Lueyen
Dictator in Training
Dictator in Training
 
Posts: 1793
Joined: Tue Mar 09, 2004 2:57 pm

Re: weird bug with windows dir command?

Postby brinstar » Thu Apr 17, 2008 6:42 am

hey you only get what you give
compost the rich
User avatar
brinstar
Cat Crew
Cat Crew
 
Posts: 13133
Joined: Tue Mar 09, 2004 1:45 pm
Location: 402

Re: weird bug with windows dir command?

Postby ClakarEQ » Thu Apr 17, 2008 2:36 pm

Can the mistake be duplicated from another XP box? how about on the server itself?

There are some ways to hard code environment variables that could cause this but I've never seen a problem as you've described (e.g. only 1 TLM file and not all TLM's)

Are there any indexing products running on the workstation?

If you force it to 8.3 naming convention, does it still fail?

Does a windows search using the same criteria expose the same flaw?
ClakarEQ
NT Traveller
NT Traveller
 
Posts: 2080
Joined: Wed Mar 10, 2004 3:46 pm

Re: weird bug with windows dir command?

Postby Lueyen » Thu Apr 17, 2008 6:45 pm

ClakarEQ wrote:Can the mistake be duplicated from another XP box? how about on the server itself?

There are some ways to hard code environment variables that could cause this but I've never seen a problem as you've described (e.g. only 1 TLM file and not all TLM's)


The xp box is the only machine on the remote network I have access too. Running this same thing on my work computer did not yield the same results, however the file location on the server drive share did make a difference as it didn't happen when the file was moved to a sub directory.

ClakarEQ wrote:Are there any indexing products running on the workstation?


I didn't check for certain, but it is very likely windows search service is running, as well as an instance of SQL server

ClakarEQ wrote:If you force it to 8.3 naming convention, does it still fail?


I thought about this last night, and it could be the cause however when this issue manifests its self, normally it's due to the way the name is truncated, dictated by file length. Since the same naming convention is followed for all TLM (and TLD) files, the name length is static and I would expect all the TLM files to show up if it were due to naming convention issues. I have not had a chance to test this, but I suspect this is where the oddity is coming from, but I am at a loss to explain exactly why that would be.

ClakarEQ wrote:Does a windows search using the same criteria expose the same flaw?


I didn't try this. The original problem and the cause of me looking at this was that a vb6 app was having issues reading in these xml files, it terminated on the first file (completely different schema). The list for the program to process was created inside the app via the Dir command, which was why I tried it from the command prompt to verify it wasn't a logic issue somewhere in the code that I was missing.
Raymond S. Kraft wrote:The history of the world is the history of civilizational clashes, cultural clashes. All wars are about ideas, ideas about what society and civilization should be like, and the most determined always win.

Those who are willing to be the most ruthless always win. The pacifists always lose, because the anti-pacifists kill them.
User avatar
Lueyen
Dictator in Training
Dictator in Training
 
Posts: 1793
Joined: Tue Mar 09, 2004 2:57 pm


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 4 guests