0

I m trying to create batch script where i need to check the filesize of test.html file present in my download folder.If filesize is equal to some value then execute say ABC command and if filesize is equal to different value then execute some different command Please Suggest me syntax or example

1 Answer 1

1
@echo off set "file_path=test.html" for %%# in ("%file_path%") do set file_size=%%~z# if %file_size% EQU 190 ( call some_command ) else ( call some_other_command ) 

Mind that the %file_size% will be in bytes.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.