Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Changes in dir command

Reply
Thread Tools Display Modes

Changes in dir command

 
 
Michael J. Thurgood
Guest
Posts: n/a

 
      05-22-2008
Within the command prompt in Windows Vista, the dir command now shows
non-zero byte counts for folders. This is a change from prior versions of
Windows such that now, the output from the "dir" command does not match
right-click, Properties from Windows Explorer in terms of total bytes for a
folder (including subfolders). Is there any way to change the behavior of
the "dir" command to report 0 bytes for folders?
 
Reply With Quote
 
 
 
 
Michael J. Thurgood
Guest
Posts: n/a

 
      05-22-2008
I need to clarify that these differences in the "dir" command appear to occur
when obtaining the directory of a CD or DVD. Folders still report zero bytes
within "dir" commands run on hard drives or network drives.

"Michael J. Thurgood" wrote:

> Within the command prompt in Windows Vista, the dir command now shows
> non-zero byte counts for folders. This is a change from prior versions of
> Windows such that now, the output from the "dir" command does not match
> right-click, Properties from Windows Explorer in terms of total bytes for a
> folder (including subfolders). Is there any way to change the behavior of
> the "dir" command to report 0 bytes for folders?

 
Reply With Quote
 
Mark L. Ferguson
Guest
Posts: n/a

 
      05-22-2008
You may find a hidden file named desktop.ini in those folders. The autorun
feature writes it.
--
Was this helpful? Then click the Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales...eAPostAsAnswer
Mark L. Ferguson
..

"Michael J. Thurgood" <> wrote in
message news:1ADB0103-5877-4B69-9EC3-...
> I need to clarify that these differences in the "dir" command appear to
> occur
> when obtaining the directory of a CD or DVD. Folders still report zero
> bytes
> within "dir" commands run on hard drives or network drives.
>
> "Michael J. Thurgood" wrote:
>
>> Within the command prompt in Windows Vista, the dir command now shows
>> non-zero byte counts for folders. This is a change from prior versions
>> of
>> Windows such that now, the output from the "dir" command does not match
>> right-click, Properties from Windows Explorer in terms of total bytes for
>> a
>> folder (including subfolders). Is there any way to change the behavior
>> of
>> the "dir" command to report 0 bytes for folders?


 
Reply With Quote
 
Michael J. Thurgood
Guest
Posts: n/a

 
      05-22-2008
I don't think a hidden desktop.ini explains the difference. I use the
following command to create a directory of archived data on CD / DVD for
later searching:
dir /w /s /A /OGN > [filename]

I believe using this syntax, all types of files should be included in the
directory output, including system and hidden files.

Here's an example output:
=======================================
Directory of F:\PDF_120605

02/07/2007 01:03 PM <DIR> .
02/07/2007 01:03 PM <DIR> ..
12/06/2005 05:20 PM 799,804 Figure-1.pdf
1 File(s) 801,288 bytes
=======================================

Though the folder only has one file, the total bytes for the folder is
larger than the bytes for the file, so bytes for the . and .. folders is
being included.

Here is an example from an empty folder:

=======================================
Directory of F:\Projects\Modeling

02/07/2007 12:45 PM <DIR> .
02/07/2007 12:48 PM <DIR> ..
0 File(s) 1,060 bytes
=======================================

"Mark L. Ferguson" wrote:

> You may find a hidden file named desktop.ini in those folders. The autorun
> feature writes it.
> --
> Was this helpful? Then click the Ratings button. Voting helps the web
> interface.
> http://www.microsoft.com/wn3/locales...eAPostAsAnswer
> Mark L. Ferguson
> .


 
Reply With Quote
 
Jim Dell
Guest
Posts: n/a

 
      05-23-2008
Michael J. Thurgood wrote:
> I don't think a hidden desktop.ini explains the difference. I use the
> following command to create a directory of archived data on CD / DVD for
> later searching:
> dir /w /s /A /OGN > [filename]
>
> I believe using this syntax, all types of files should be included in the
> directory output, including system and hidden files.
>
> Here's an example output:
> =======================================
> Directory of F:\PDF_120605
>
> 02/07/2007 01:03 PM <DIR> .
> 02/07/2007 01:03 PM <DIR> ..
> 12/06/2005 05:20 PM 799,804 Figure-1.pdf
> 1 File(s) 801,288 bytes
> =======================================
>
> Though the folder only has one file, the total bytes for the folder is
> larger than the bytes for the file, so bytes for the . and .. folders is
> being included.
>
> Here is an example from an empty folder:
>
> =======================================
> Directory of F:\Projects\Modeling
>
> 02/07/2007 12:45 PM <DIR> .
> 02/07/2007 12:48 PM <DIR> ..
> 0 File(s) 1,060 bytes
> =======================================
>
> "Mark L. Ferguson" wrote:
>
>> You may find a hidden file named desktop.ini in those folders. The autorun
>> feature writes it.
>> --
>> Was this helpful? Then click the Ratings button. Voting helps the web
>> interface.
>> http://www.microsoft.com/wn3/locales...eAPostAsAnswer
>> Mark L. Ferguson
>> .

>

I think the space might be for the file system itself. Record a CD or
DVD with no files on it and see how much space is taken up.

Jim
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Ren (Rename) command broken? SixSigmaGuy Windows Vista General Discussion 5 05-20-2008 10:52 AM
MS-DOS - COMMAND Scott Windows Vista General Discussion 39 08-08-2007 08:11 PM
Reg command Mike Windows Vista Security 14 07-13-2007 08:56 PM
Where is the Run Command? Jupiter Jones [MVP] Windows Vista General Discussion 11 10-17-2006 12:55 AM
about dos command ghiacciomenta Windows Vista General Discussion 3 06-25-2006 06:48 AM



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 47 48 49 50 51 52 53 54 55 56 57 58 59