Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computing > Alt Msdos Programmer > How to implemen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 407 of 501
Post > Topic >>

How to implement AND and OR in if condition in batch file ?

by bernd220@[EMAIL PROTECTED] (Bernd Oninger) Jul 23, 2006 at 11:58 AM

How do I implement boolean AND and OR operators in if commands in msdos
batch files ?

The following does NOT work:

if (condition1) || (condition2) (GOTO CHECKLABEL)

It yields:

"|| was not expected at this time"

Bernd
 




 1 Posts in Topic:
How to implement AND and OR in if condition in batch file ?
bernd220@[EMAIL PROTECTED  2006-07-23 11:58:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 22:41:53 CDT 2008.