Batch file 在dos批处理文件中,如果";%a%"=="E;%b%";(goto:label1)否则goto:label2将被重写为只读取一个标签?

Batch file 在dos批处理文件中,如果";%a%"=="E;%b%";(goto:label1)否则goto:label2将被重写为只读取一个标签?,batch-file,dos,Batch File,Dos,如果a&b相等,我希望脚本继续到下一行,而不必执行agoto:label1。这可能吗?反过来写: IF NOT "%a%"=="%b%" goto label2 ::the label1 stuff 因此,如果a和b相等,label2 goto将不会运行,它将处理label1的内容可能在:label2之前,应该有goto:eof或goto:label3以避免执行:label2

如果a&b相等,我希望脚本继续到下一行,而不必执行a
goto:label1
。这可能吗?

反过来写:

IF NOT "%a%"=="%b%" goto label2
::the label1 stuff

因此,如果a和b相等,label2 goto将不会运行,它将处理label1的内容

可能在
:label2
之前,应该有
goto:eof
goto:label3
以避免执行
:label2