%~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.
echo %~z1
pause
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.
test.bat Testmysize.mdb
It will display the size of Test my size.mdb file in bytes.
Advertisement
0 Responses to “%~z1”