1.2.
set "filename=myfile.txt" for %%A in (%filename%) do echo.Size of "%%A" is %%~zA bytes
Size of "myfile.txt" is 57006 bytes