QUESTION #1
This applies to all files. Doesn't matter if it is a shortcut, .txt
file or an internet shortcut.
An empty .txt file, .doc file or folder may show...
Size: 0 bytes
Size on disk: 0 bytes
If a .txt file or folder contains 1 byte, the Size on disk will
be 4.0 KB. If the file size is 0 bytes it will be 0 bytes on the disk.
Create a new empty .txt file. Right click Desktop | New | Text Document
|
Right click the New Text Document.txt | Properties | General tab |
Size: 0 bytes
Size on disk: 0 bytes
Open the New Text Document.txt and type a period, save the file.
Right click the New Text Document.txt | Properties | General tab |
Size: 1 bytes (1 bytes)
Size on disk: 4.00 KB (4,096 bytes)
Of course, typing a period in a Word .doc will increase the file size to
19.5 KB (19,968 bytes) and Size on disk to 20.0 KB (20,480 bytes).
Right click an Internet Shortcut | Properties | General tab |
Size: 227 bytes (227 bytes) Just an example, they are all different.
Size on disk: 4.00 KB (4,096 bytes)
Right click a Folder Shortcut | Properties | General tab |
Size: 749 bytes (749 bytes) Just an example, they are all different.
Size on disk: 4.00 KB (4,096 bytes)
Navigate to C:\Documents and Settings\All Users\Start Menu
Right click the Start Menu | Properties | General tab |
What does Size show?
What does Size on disk show?
Navigate to C:\Documents and Settings\Your Name Here\Start Menu
Right click the Start Menu | Properties | General tab |
What does Size show?
What does Size on disk show?
Right click Favorites folder | Properties | General tab |
What does Size show?
What does Size on disk show?
If the cluster size for NTFS is 4KB, then 4KB will be the smallest space
that any file 1 byte to 4 KB will take up on the drive.
Size is the actual size of the file. Size on disk shows the actual space
that the file takes up on the disk.
The only time that Size on disk will be smaller than Size is when a
file/folder is compressed.
Large cluster sizes improve performance at the expense of increased
slack. Small cluster sizes reduce slack at the expense of decreased
performance. 4KB is the default cluster size for NTFS.
[[Rarely do file sizes exactly match the size of one or multiple clusters
perfectly. The data storage space that exists from the end of the file to
the end of the last cluster assigned to the file is called "file slack".
]] From...
File Slack Defined
http://www.forensics-intl.com/def6.html
[[A cluster (or allocation unit) is the smallest amount of disk space
that can be allocated to hold a file. ]]
[[The smaller the cluster size, the more efficiently a disk stores
information because unused space within a cluster cannot be used by other
files. ]]
From...
Cluster Size
http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/prkc_fil_lxty.asp
[[If you are not using NTFS compression for any files or folders that are
contained on the volume, the difference between the Size value and the
Size on disk value is the wasted space that occurs because the cluster
size is larger than necessary. Choose an optimal cluster size so that
the Size on disk value is as close to the Size value as possible. An
excessive discrepancy between the Size on disk value and the Size value
is an indication that the default cluster size is too large for the
average file size that you are storing on the volume.]]
How to locate and correct disk space problems on NTFS volumes in Windows
XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;315688
QUESTION #2
Try
%HOMEDRIVE% The user's home directory's drive letter.
%homepath% The path to the user's home directory.
%SystemDrive% The drive containing the Windows XP root directory.
Type %HOMEDRIVE% into Start | Run to see what opens.
Type %homepath% into Start | Run to see what opens.
Type %SystemDrive% into Start | Run to see what opens.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In
SeaMaid said:
QUESTION #1
Assuming NTFS clusters are 4k, that means the smallest file you can save
will be saved as 4k (32k in FAT32), even if the file is only 0 bytes, 1
byte, 600 bytes, 1k, 2k, 3k, or 4k. Does the same apply to shortcuts? Do
shortcuts also take 4k each (32k in FAT32)? My Favorites menu and Start
menu for various users have MANY shortcuts. I read the articles on the
Microsoft site about NTFS and file storage but could not find the
answer.
QUESTION #2
Is there a way to make a shortcut to another place on the same drive
without including the drive letter (in case the drive letter changes)?
If the path to the folder is:
D:\MS\XP\Updates
I'd like the shortcut to be "smart" in case the drive is no longer D. Is
there a way to do this?
%CurrentDrive%\MS\XP\Updates
That probably is bad syntax, but I think you know what I'm trying to
accomplish. If the drive letter changes, that the shortcuts will still
point to the same drive (be is a hard drive or a CD), rather than
whatever drive is currently D.