1.

Solve : Or??

Answer»

Hi, I haven't worked in DOS for YEARS. Can someone remind me of the or command?

e.g.
if ("%start%"=="-s" or "%start%"=="-z")

ThanksNot aware that DOS batch EVER had an "or" command.

An easy way to handle an "or" situation is to check each singularly and if true do the same logic:

Code: [SELECT]if %start%==-s do something or go somewhere
if %start%==-z do the SAMETHING or go the sameplace

8-)Well that logic ENDS up failing because of the commands I'm trying to run. I guess I can do it with else if's though.

ThanksWhat's the command you are trying to do?



Discussion

No Comment Found