RosettaCodeData/Task/File-size/Batch-File/file-size.bat
2014-01-17 05:34:36 +00:00

4 lines
137 B
Batchfile

@echo off
if not exist "%~1" exit /b 1 & rem If file doesn't exist exit with error code of 1.
for /f %%i in (%~1) do echo %~zi
pause>nul