Rico.JohnnY Posted June 9, 2004 Share Posted June 9, 2004 i.eif not A = B and not B = C thenend ifhow to convert the above to bat form.. Link to comment Share on other sites More sharing options...
jdoe Posted June 9, 2004 Share Posted June 9, 2004 IF A = B THEN GOTO ENDIF B = C THEN GOTO ENDREM Put your code here:END Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 9, 2004 Share Posted June 9, 2004 Alternately,IF NOT A EQU B (IF NOT B EQU C ( commands)) Link to comment Share on other sites More sharing options...
thread Posted June 9, 2004 Share Posted June 9, 2004 IF NOT A EQU B (IF NOT B EQU C (GOTO END) ELSE (GOTO BC) ELSE (GOTO AB) Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 9, 2004 Share Posted June 9, 2004 IF NOT A EQU B (IF NOT B EQU C (GOTO END) ELSE (GOTO BC) ELSE (GOTO AB)That won't work. The ELSE needs to be on the same line as the IF statement. Link to comment Share on other sites More sharing options...
GreenMachine Posted June 9, 2004 Share Posted June 9, 2004 Me, I always respected Groucho Marx for his one-liners ... IF NOT "%A%"=="%B%" IF NOT "%C%"=="%D%" GOTO BAR Link to comment Share on other sites More sharing options...
thread Posted June 9, 2004 Share Posted June 9, 2004 uhm, try doing an if /? in cmd before saying that else has to be on same line as if Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 9, 2004 Share Posted June 9, 2004 uhm, try doing an if /? in cmd before saying that else has to be on same line as ifI stand corrected, but your command is still incorrect. You are missing a ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now