How can I check if an argument is defined when starting/calling a batch file?

后端 未结 7 1811
无人共我
无人共我 2020-12-13 03:21

I\'m trying to use the following validation logic in a batch file but the \"usage\" block never executes even when no parameter is supplied to the batch file.



        
相关标签:
7条回答
  • 2020-12-13 04:03
    IF "%1"=="" GOTO :Continue
    .....
    .....
    :Continue
    IF "%1"=="" echo No Parameter given
    
    0 讨论(0)
提交回复
热议问题