Windows Batch Files: if else

前端 未结 6 831
执笔经年
执笔经年 2020-12-24 00:42

I\'m doing a simple batch file that requires one argument (you can provide more, but I ignore them).

For testing, this is what I have so far.

if not          


        
6条回答
  •  [愿得一人]
    2020-12-24 00:58

    you have to do like this...

    if not "A%1" == "A"

    if the input argument %1 is null, your code will have problem.

提交回复
热议问题