Fixed @filesize[...,a] space allocated values incorrect

rps

Jul 6, 2008
436
6
These results are the same in both V22 & V23
Code:
v23.00.22_$ver
TCC  23.00.22 x64   Windows 10 [Version 10.0.17134.112]

v23.00.22_$echo %@filesize["d:\bat\Smalltest.txt",bc,a]
4,583
v23.00.22_$echo %@filesize["d:\bat\Smalltest.txt",bc]
4,583

v23.00.22_$*dir /Nfv d:\bat\SmallTest.txt
 Directory of  D:\bat\SmallTest.txt
 7/21/2013   3:38           4,583  SmallTest.txt
               4,583 bytes in 1 file and 0 dirs    8,192 bytes allocated
V21 values are correct.
Code:
v21.01.63_$ver

TCC  21.01.63 x64   Windows 10 [Version 10.0.17134]

v21.01.63_$echo %@filesize["d:\bat\smalltest.txt",bc]
4,583

v21.01.63_$echo %@filesize["d:\bat\smalltest.txt",bc,a]
8,192
Didn't pick this up earlier since I hadn't used @filesize[] in any of my older batch files. :oops:
 

rps

Jul 6, 2008
436
6
It's back in 23.0.25
Code:
v23.00.25_$dir /h /nfv %comspec

 Directory of  C:\JPSoft\TCMD23x64\TCC.EXE

 7/22/2018  15:36         240,208  tcc.exe
             240,208 bytes in 1 file and 0 dirs    241,664 bytes allocated

v23.00.25_$*echo %@filesize[%comspec,bc]
240,208

v23.00.25_$*echo %@filesize[%comspec,bc,a]
483,328

V22.00.42 also has an issue.
Code:
v22.00.42_$dir /nfv "%comspec"

 Directory of  D:\TCMD v22\TCC.EXE

 5/05/2018  21:30         241,280  tcc.exe
             241,280 bytes in 1 file and 0 dirs    241,664 bytes allocated

v22.00.42_$*echo %@filesize["%comspec",bc]
241,280

v22.00.42_$*echo %@filesize["%comspec",bc,a]
241,280
 
Similar threads
Thread starter Title Forum Replies Date
vefatica @FILESIZE ... allocated space Support 7
Joe Caverly @FILESIZE and NTFS File Stream Support 1
vefatica @FILESIZE[] ... allocated ... unexpected results Support 0
rps @FILESIZE[....,a] allocated size not matching Dir results Support 8
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
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Joe Caverly Echo message works without the space? Support 3
jbanaszczyk Alias with space in the name Support 3
vefatica WAD @FILEREADB outputs a leading space ... Support 2
C How to? MOVE and handling out of space Support 2
Exolon Space within path and FOR Support 4
aedthuio Folder with space char Support 6
vefatica START /DESKTOP="name with space" ... Support 4
W File completion without space/executable extensions Support 3
Stefano Piccardi replace tcc process space? Support 8
H variable programfiles(x86) loses space Support 1
D unzip /d in directory with space in name Support 1
thorntonpg removing directory with space at the end Support 3
R Fixed Bytes Allocated Total Incorrect in V17 b52 Support 1
M How to? Find out the total allocated size of a directory tree... Support 7

Similar threads