If greater than batch files

try this:

if 3 gtr 2 @echo "biggger"

This outputs:

"biggger"

enter image description here

The other operators are:

EQU – equal
NEQ – not equal
LSS – less than
LEQ – less than or equal
GTR – greater than
GEQ – greater than or equal

Reference

  • Microsoft TechNet | Windows Server 2012 | Command-line Reference: If (Archived here)
  • SS64: If (Archived here)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)