none
Compare time in bat RRS feed

All replies

  • YOu can't. YOu have to compare each integer portion of the string separately.

    Search for examples on how to do this.

    You should not be using batch in modern Windows.  Use PowerShell as it is easier.

    if([datetime]::Now.TimeOfDay -gt [timespan]0){
         # do something
    }


    \_(ツ)_/

    Wednesday, June 26, 2019 6:58 PM