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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -