%~z1 – expands %1 to size of file
To get the size of a file in bytes using batch script is very easy.
Open note pad and type in the below commands.
save the file as test.bat
If you want to get the size of a file ,say “Testmysize.mdb” ,Open cmd.exe and run the below command.
It will display the size of Test my size.mdb file in bytes.