Windows Explorer

A

Alex

Hi,

Is there any setting to change the default behavior of Windows Explorer to
show Size column in bytes not KBytes.
Since I am working with files smaller than 1KB, I have to work with file
manager to see the file sizes in bytes.

Thanks
Alex
 
C

Carrie Garth \(MVP\)

Hi Alex,

You will need to create a COM object. For more information, see the following
article which "develops a simple column handler that displays the size of the file in
bytes."

Using Shell Column Handlers for Detailed File Information
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/shellcolhand.asp

An easier method is to configure Windows Explorer so that folder contents are
displayed as Web pages and customize the template used for Web View so that it shows
bytes in the pane that shows descriptive text.

The method used to edit the Web View template varies depending on what Operating
System Service Pack you have installed. If you are interested in customizing a
template post back with your OS SP level and I will try to walk you through the
steps.

--
Carrie Garth, Microsoft MVP for Windows 2000
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- c x g

: "Alex" <amalekshahi AT hotmail DOT com>
: Wrote in message : Sent: Thursday, July 17, 2003 03:07 PM
: Hi,
:
: Is there any setting to change the default behavior of Windows Explorer to
: show Size column in bytes not KBytes.
: Since I am working with files smaller than 1KB, I have to work with file
: manager to see the file sizes in bytes.
:
: Thanks
: Alex
 
C

Carrie Garth \(MVP\)

Hi Alex,

To configure Microsoft Windows 2000 SP3 Explorer Web View to show bytes in the same
panel that shows descriptive text (by default, this panel is on the left-side of the detail pane)
do the following:

- Turn on Web View functionality by following the steps in the following Microsoft
Knowledge Base Article:

KB819028 - Windows Explorer No Longer Displays Web View Templates or HTML
Customizations (Using Folder.htt)
http://support.microsoft.com/?scid=819028

- Change your Explorer view settings as follows, using Control Panel > Folder Options:

General [tab]: Use Windows classic folders.

View [tab]: Select: "Show hidden files and folders". Uncheck: "Hide file extensions
for known file types" and "Hide protected operating system files (Recommended)".


- Use Windows Explorer to navigate to this folder: C:\WINNT\Web

- Rename folder.htt

- Make a copy of standard.htt

- Open your copy of standard.htt in notepad

- Find and delete the following 14 lines:

function HandleSize(item) {
var s = "";
var size = item.Size;
if (size && size < 1000)
s = "<p>" + L_Size_Text + size + L_Bytes_Text;
else {
var data = FileList.Folder.GetDetailsOf(item, 1);
if (data)
s = "<p>" + FileList.Folder.GetDetailsOf(null, 1) + ": " + data;
else if (size)
s = "<p>" + L_Size_Text + FormatNumber(size.toString()) + L_Bytes_Text;
}
return s;
}

- In the same location, paste the following 9 lines

function HandleSize(item) {
var s = "";
var size = item.Size;
if (size)
{
s = "<p>" + L_Size_Text + FormatNumber(size.toString()) + L_Bytes_Text;
}
return s;
}

- Save and close this file. Rename it folder.htt. Use Folder Options to enable Web
View. Control Panel > Folder Options > General [tab] > Enable Web content in folder.

BTW, since you are "working with files smaller than 1KB", an even easier option to
show bytes after selecting a file would be to configure Windows Explorer "To show
pop-up descriptions for folder and desktop items" (infotips). Then, when you select a
file smaller than 1KB, the size in bytes will be shown in the pop-up description.
Also, if you configure Windows Explorer to "show the status bar", size in bytes will
show there, too. For more information on how to configure those two options, search
Windows 2000 Help for words in double-quotes.

--
Carrie Garth, Microsoft MVP for Windows 2000
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- c x g

: "Alex" <[email protected]>
: Wrote in message : Sent: Friday, July 18, 2003 08:25 AM
: Thanks Carrie,
:
: I use Windows 2000 Sp3 and XP SP1.
:
: Regards,

: "Carrie Garth (MVP)"
: Wrote in message : Sent: Friday, July 18, 2003 07:16 AM
: You will need to create a COM object. For more information, see the following
: article which "develops a simple column handler that displays the size of the file
: in bytes."
:
: Using Shell Column Handlers for Detailed File Information
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/shellcolhand.asp
:
: An easier method is to configure Windows Explorer so that folder contents are
: displayed as Web pages and customize the template used for Web View so that it
: shows bytes in the pane that shows descriptive text.
:
: The method used to edit the Web View template varies depending on what Operating
: System Service Pack you have installed. If you are interested in customizing a
: template post back with your OS SP level and I will try to walk you through the
: steps.

: : "Alex" <amalekshahi AT hotmail DOT com>
: : Wrote in message : : Sent: Thursday, July 17, 2003 03:07 PM
: : Is there any setting to change the default behavior of Windows Explorer to
: : show Size column in bytes not KBytes.
: : Since I am working with files smaller than 1KB, I have to work with file
: : manager to see the file sizes in bytes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top