@FILESIZE and NTFS File Stream

     _x64: 1
   _admin: 1
_elevated: 1

TCC  27.00.18 x64   Windows 10 [Version 10.0.18363.1256]

I would like to get the filesize of an NTFS File Stream.
e:\utils>dir /: EncodeEXE.btm

 Volume in drive E is New Volume   Serial number is 2c1e:6e61
 Directory of  E:\Utils\EncodeEXE.btm

2021-01-02   5:54             868  EncodeEXE.btm
                            5,614    timer.b64:$DATA
When I use;
e:\utils>echo %@filesize[EncodeEXE.btm:timer.b64]
it does not return 5,614 which is the size of the stream.

If I use @FILEOPEN/@FILESEEK it returns the correct size of the stream.
set hnd=%@fileopen[EncodeEXE.btm:timer.b64,r]
set thesize=%@FILESEEK[%hnd,0,2]
echo %thesize
echo %@fileclose[%hnd]


Why does @FILESIZE not return the correct size of a NTFS stream?

Similar threads
Thread starter Title Forum Replies Date
vefatica @FILESIZE[] ... allocated ... unexpected results Support 0
rps @FILESIZE[....,a] allocated size not matching Dir results Support 8
rps Fixed @filesize[...,a] space allocated values incorrect Support 2
vefatica @FILESIZE ... allocated space Support 7
M @Files and @FileSize failures... Support 2
M @FileSize - How is this possible? Support 10
M @Files, @FileSize returning nothing... Support 7
M A (minor) limitation of @FileSize... Support 6
JohnQSmith WAD Incorrect results from @FILESIZE Support 9
H @filesize result for directory? Support 2
dcantor Build 56 @FILESIZE problem Support 2
Tim Rowe NTFS Descriptions not working Support 13
Joe Caverly PSHELL and NTFS File Streams Support 2
vefatica NTFS descriptions? Support 7
vefatica REN and NTFS streams? Support 3
L How to copy an old xp drive to a large ntfs drive Support 6
S NTFS file compression via ATTRIB Support 2
C Directory listing that shows NTFS file descriptions? Support 3
Joe Caverly ZIPing individual NTFS File Streams Support 4
C NTFS Descriptions don't work? Support 3
J History file load hangs if file has complete garbage in it... Support 1
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
thorntonpg file explorer - short cut keys Support 1
JohnQSmith New online help file wrong logo Support 7
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
samintz How to? swap endianness in a binary file Support 12
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
Jay Sage Issues With TCMD File Explorer Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly Embedding an .EXE (or other file) into a .BTM Support 8
U Command help on file names Support 5
S Concatenate all playlists into 1 file Support 22
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
Joe Caverly Rename file that begins with Emoji Support 7
P Kill all other instances of tcc from a btm batch file Support 2
D ffind hangs on large file Support 18
Alpengreis Documentation Minor issue in help file for view /E Support 1
fpefpe batch file ending early Support 18
J Licesne file location Support 1
K robocopy cancelling batch file processing Support 28
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
A Unable to pass batch file arguments unaltered Support 18
MikeBaas How to...extract a string from a .json-file? Support 10
vefatica LIBRARY and file name completion? Support 4
D What does the file "..\Everything\Run history.csv" store? Support 5
H Takecommand.pdf failed not a pdf file Support 6
Joe Caverly DIRectory Colorization in v25 Help File Support 0
C show file description? with dir? Support 8
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7

Similar threads