Determine if the file size is zero at the command prompt (batch)
Use %%~zF to determine if the file size is zero at the command prompt. A for statement is also used to determine this.
The following is a sample source.
for %%F in (test.log) do ( REM If 0 byte, normal termination if %%~zF==0 ( exit 0 ) else ( exit 1 ) )
![株式会社CONFRAGE](https://i0.wp.com/confrage.jp/wp-content/uploads/2018/08/aaaaaaaaa-1.jpg?resize=100%2C100&ssl=1)
コメント