How can I check the size of a file in a Windows batch script?
- by YourComputerHelpZ
I want to have a batch file which checks what the filesize is of a file.
If it is bigger than %somany% kbytes, it should redirect with GOTO to somewhere else.
Example:
[check for filesize]
IF %file% [filesize thing Bigger than] GOTO No
echo Great! Your filesize is smaller than %somany% kbytes.
pause
exit
:no
echo Um... You have a big filesize.
pause
exit