Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - Strange dir d*. results

Reply
 
Old 05-08-2007   #1 (permalink)
Steven Andrews


 
 

Strange dir d*. results

Hi all

Just mucking around today, began DOS prompt as admin: cd\ into root of
c Drive. Issued dir d*.* command
Expected a list of all documents and folders in the root of C starting
with the letter D, and instead got this:

C:\>dir d*.*
Volume in drive C has no label.
Volume Serial Number is 5440-F38A

Directory of C:\

01/05/2007 07:01 AM <DIR> temp
0 File(s) 0 bytes
1 Dir(s) 27,550,375,936 bytes free

C:\>

Issued dir t*.* and got the listing one would expect from a command.
Why does the letter d appear wrong?

Any ideas or thoughts?

Steve


My System SpecsSystem Spec
Old 05-08-2007   #2 (permalink)
Olof Lagerkvist


 
 

Re: Strange dir d*. results

Steven Andrews wrote:

> Hi all
>
> Just mucking around today, began DOS prompt as admin: cd\ into root of
> c Drive. Issued dir d*.* command
> Expected a list of all documents and folders in the root of C starting
> with the letter D, and instead got this:
>
> C:\>dir d*.*
> Volume in drive C has no label.
> Volume Serial Number is 5440-F38A
>
> Directory of C:\
>
> 01/05/2007 07:01 AM <DIR> temp
> 0 File(s) 0 bytes
> 1 Dir(s) 27,550,375,936 bytes free
>
> C:\>
>
> Issued dir t*.* and got the listing one would expect from a command. Why
> does the letter d appear wrong?
>
> Any ideas or thoughts?



Try

dir /x d*.*

What is the result? There may for some reason be a short name for temp
that begins with the letter 'd'.

--
Olof Lagerkvist
ICQ: 724451
Web: http://here.is/olof
My System SpecsSystem Spec
Old 05-08-2007   #3 (permalink)
Steven Andrews


 
 

Re: Strange dir d*. results

Olof Lagerkvist wrote:
> Steven Andrews wrote:
>
>> Hi all
>>
>> Just mucking around today, began DOS prompt as admin: cd\ into root
>> of c Drive. Issued dir d*.* command
>> Expected a list of all documents and folders in the root of C starting
>> with the letter D, and instead got this:
>>
>> C:\>dir d*.*
>> Volume in drive C has no label.
>> Volume Serial Number is 5440-F38A
>>
>> Directory of C:\
>>
>> 01/05/2007 07:01 AM <DIR> temp
>> 0 File(s) 0 bytes
>> 1 Dir(s) 27,550,375,936 bytes free
>>
>> C:\>
>>
>> Issued dir t*.* and got the listing one would expect from a command.
>> Why does the letter d appear wrong?
>>
>> Any ideas or thoughts?

>
>
> Try
>
> dir /x d*.*
>
> What is the result? There may for some reason be a short name for temp
> that begins with the letter 'd'.
>


Spot on. Results:

C:\>dir /x d*.*
Volume in drive C has no label.
Volume Serial Number is 5440-F38A

Directory of C:\

01/05/2007 07:01 AM <DIR> DAVEYK~1.LOC temp
0 File(s) 0 bytes
1 Dir(s) 27,531,538,432 bytes free

C:\>

Oddly enough, this Vista Ultimate PC was previously connected to a
domain called DaveyK.local. I normally use the dir cmd as I "don't
trust" the windows search function. But now I'm questioning even that.

However the rest of the files with 8.3 filenames are the usual
(first6)~X.ext. Why does this one differ?

Renaming the directory destroyed the 8.3 filename. This must be because
the directory was created on the old domain, and all the other
directories were created new / renamed / or reused.

A new trap for young and old players alike!
My System SpecsSystem Spec
Old 05-08-2007   #4 (permalink)
Dave


 
 

Re: Strange dir d*. results

that is different.

try dir d*

or dir my*


"Steven Andrews" <applecontrolreset@hotmail.com> wrote in message
news:uGQ8c7UkHHA.4112@TK2MSFTNGP04.phx.gbl...
> Hi all
>
> Just mucking around today, began DOS prompt as admin: cd\ into root of
> c Drive. Issued dir d*.* command
> Expected a list of all documents and folders in the root of C starting
> with the letter D, and instead got this:
>
> C:\>dir d*.*
> Volume in drive C has no label.
> Volume Serial Number is 5440-F38A
>
> Directory of C:\
>
> 01/05/2007 07:01 AM <DIR> temp
> 0 File(s) 0 bytes
> 1 Dir(s) 27,550,375,936 bytes free
>
> C:\>
>
> Issued dir t*.* and got the listing one would expect from a command.
> Why does the letter d appear wrong?
>
> Any ideas or thoughts?
>
> Steve
>


My System SpecsSystem Spec
Old 05-08-2007   #5 (permalink)
Olof Lagerkvist


 
 

Re: Strange dir d*. results

Steven Andrews wrote:

> Oddly enough, this Vista Ultimate PC was previously connected to a
> domain called DaveyK.local. I normally use the dir cmd as I "don't
> trust" the windows search function. But now I'm questioning even that.



I would say that there is really no reasons not to trust either of them,
but there are a few things that could be good to be aware of when using
them.

> However the rest of the files with 8.3 filenames are the usual
> (first6)~X.ext. Why does this one differ?



Don't know, not supposed to be so really. The short name should be
automatically set to a generated "abbreviated variant" when a file or
directory is renamed. In earlier versions there was a registry setting
to disable auto-generation of short names, unfortunately I don't know if
that has changed in Vista or if it behaves different now.

> Renaming the directory destroyed the 8.3 filename. This must be because
> the directory was created on the old domain, and all the other
> directories were created new / renamed / or reused.



Short names can be changed manually with the 'fsutil' command:

fsutil file setshortname C:\the_long_named_file.txt SHORTNAM.TXT

--
Olof Lagerkvist
ICQ: 724451
Web: http://here.is/olof
My System SpecsSystem Spec
Old 05-08-2007   #6 (permalink)
Steven Andrews


 
 

Re: Strange dir d*. results

Olof Lagerkvist wrote:
> Steven Andrews wrote:
>
>> Oddly enough, this Vista Ultimate PC was previously connected to a
>> domain called DaveyK.local. I normally use the dir cmd as I "don't
>> trust" the windows search function. But now I'm questioning even that.

>
>
> I would say that there is really no reasons not to trust either of them,
> but there are a few things that could be good to be aware of when using
> them.
>
>> However the rest of the files with 8.3 filenames are the usual
>> (first6)~X.ext. Why does this one differ?

>
>
> Don't know, not supposed to be so really. The short name should be
> automatically set to a generated "abbreviated variant" when a file or
> directory is renamed. In earlier versions there was a registry setting
> to disable auto-generation of short names, unfortunately I don't know if
> that has changed in Vista or if it behaves different now.
>
>> Renaming the directory destroyed the 8.3 filename. This must be
>> because the directory was created on the old domain, and all the other
>> directories were created new / renamed / or reused.

>
>
> Short names can be changed manually with the 'fsutil' command:
>
> fsutil file setshortname C:\the_long_named_file.txt SHORTNAM.TXT
>


I haven't still haven't worked out why it was different to itself. It
shocked me a little as I use paths and filenames in batch files to
automate certain things, this just made me wonder if I'm setting myself
up to delete the windows directory by accident one day.

The behaviour is the same in XP as well, I just never noticed it. I
always thought that 8.3 filenames were automatically generated, never
realised you could manually change them.

Thank you very much for your help in clarifying this for me.

Take care

Steve
My System SpecsSystem Spec
Old 05-08-2007   #7 (permalink)
Darrell Gorter[MSFT]


 
 

Re: Strange dir d*. results

Hello Steve,
you may also want to run dir /a d*.* to pick up all folders with attributes
on them like documents and settings for example
Thanks,
Darrell Gorter[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
|>Date: Wed, 09 May 2007 06:30:23 +1000
|>From: Steven Andrews <applecontrolreset@hotmail.com>
|>User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
|>MIME-Version: 1.0
|>Subject: Re: Strange dir d*. results
|>References: <uGQ8c7UkHHA.4112@TK2MSFTNGP04.phx.gbl>
<uBq6vMVkHHA.1624@TK2MSFTNGP02.phx.gbl>
<O4IYsDWkHHA.4852@TK2MSFTNGP03.phx.gbl>
<#hm7yDZkHHA.4628@TK2MSFTNGP06.phx.gbl>
|>In-Reply-To: <#hm7yDZkHHA.4628@TK2MSFTNGP06.phx.gbl>
|>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
|>Content-Transfer-Encoding: 7bit
|>Message-ID: <OE0x1#akHHA.744@TK2MSFTNGP05.phx.gbl>
|>Newsgroups: microsoft.public.windows.vista.file_management
|>NNTP-Posting-Host: cpe-58-161-249-19.nsw.bigpond.net.au 58.161.249.19
|>Lines: 1
|>Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
|>Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.windows.vista.file_management:3374
|>X-Tomcat-NG: microsoft.public.windows.vista.file_management
|>
|>Olof Lagerkvist wrote:
|>> Steven Andrews wrote:
|>>
|>>> Oddly enough, this Vista Ultimate PC was previously connected to a
|>>> domain called DaveyK.local. I normally use the dir cmd as I "don't
|>>> trust" the windows search function. But now I'm questioning even that.
|>>
|>>
|>> I would say that there is really no reasons not to trust either of
them,
|>> but there are a few things that could be good to be aware of when using
|>> them.
|>>
|>>> However the rest of the files with 8.3 filenames are the usual
|>>> (first6)~X.ext. Why does this one differ?
|>>
|>>
|>> Don't know, not supposed to be so really. The short name should be
|>> automatically set to a generated "abbreviated variant" when a file or
|>> directory is renamed. In earlier versions there was a registry setting
|>> to disable auto-generation of short names, unfortunately I don't know
if
|>> that has changed in Vista or if it behaves different now.
|>>
|>>> Renaming the directory destroyed the 8.3 filename. This must be
|>>> because the directory was created on the old domain, and all the other
|>>> directories were created new / renamed / or reused.
|>>
|>>
|>> Short names can be changed manually with the 'fsutil' command:
|>>
|>> fsutil file setshortname C:\the_long_named_file.txt SHORTNAM.TXT
|>>
|>
|>I haven't still haven't worked out why it was different to itself. It
|>shocked me a little as I use paths and filenames in batch files to
|>automate certain things, this just made me wonder if I'm setting myself
|>up to delete the windows directory by accident one day.
|>
|>The behaviour is the same in XP as well, I just never noticed it. I
|>always thought that 8.3 filenames were automatically generated, never
|>realised you could manually change them.
|>
|>Thank you very much for your help in clarifying this for me.
|>
|>Take care
|>
|>Steve
|>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Request.Url.GetLeftPart(UriPartial.Authority) - strange results .NET General
Strange Vista Benchmark Results Vista General
SFC gives conflicting results Vista General
Different results from WMI in Powershell and VBS PowerShell
Unexpected results PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46