Batch file syntax for multiple criteria? -
is possible have if statement check 2 criteria? or have 2 if statements?
i want "if user name 'owen' or 'oiverson' goto this..."
no! there many different ways work around. try this:
set username=owen set found=no if [%username%]==[owen] set found=yes if [%username%]==[oiverson] set found=yes if %found%==yes goto :yes goto :no :yes @echo found user :no
Comments
Post a Comment