Comparing two number in batch script

后端 未结 3 680
轻奢々
轻奢々 2020-11-28 00:16

I\'m sorry if it seems a very basic question, but I cant compare two file sizes where one file is being written continuously in batch script, it doesn\'t go beyond if statem

3条回答
  •  -上瘾入骨i
    2020-11-28 00:36

    if cond ( 
    ...
    ) else (
    ...
    )
    
    if cond (...) else (...)
    if cond (...) else command
    if cond (...) else (
        ....
    )
    if cond (
        ....
    ) else command
    

    The placement of the parenthesis matters. The if opening parenthesis needs to be on the same line that the if command. The if closing parenthesis needs to be in the same line that the else clause (if present). The else opening parenthesis needs to be in the same line that the else clause.

提交回复
热议问题