Rico.JohnnY Posted June 9, 2004 Posted June 9, 2004 i.eif not A = B and not B = C thenend ifhow to convert the above to bat form..
jdoe Posted June 9, 2004 Posted June 9, 2004 IF A = B THEN GOTO ENDIF B = C THEN GOTO ENDREM Put your code here:END
sleepnmojo Posted June 9, 2004 Posted June 9, 2004 Alternately,IF NOT A EQU B (IF NOT B EQU C ( commands))
thread Posted June 9, 2004 Posted June 9, 2004 IF NOT A EQU B (IF NOT B EQU C (GOTO END) ELSE (GOTO BC) ELSE (GOTO AB)
sleepnmojo Posted June 9, 2004 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.
GreenMachine Posted June 9, 2004 Posted June 9, 2004 Me, I always respected Groucho Marx for his one-liners ... IF NOT "%A%"=="%B%" IF NOT "%C%"=="%D%" GOTO BAR
thread Posted June 9, 2004 Posted June 9, 2004 uhm, try doing an if /? in cmd before saying that else has to be on same line as if
sleepnmojo Posted June 9, 2004 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 )
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