RosettaCodeData/Task/File-size/Batch-File/file-size.bat
2023-07-01 13:44:08 -04: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