locked
How do I do logical operator in conditional in batch script? RRS feed

  • Question

  • Microsoft has been established for more than 40 years, yet I can't see code like:
    if (variable && variable ||)
    in batch script. where have you been, microsoft developers?

    • Edited by mending3 Wednesday, October 28, 2020 4:45 AM revision
    • Moved by Dave PatrickMVP Wednesday, October 28, 2020 11:51 AM looking for forum
    Wednesday, October 28, 2020 4:43 AM

Answers

All replies

  • I'd try asking for help over here.

    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Guido Franzke Wednesday, October 28, 2020 1:27 PM
    • Marked as answer by Guido Franzke Thursday, November 5, 2020 7:38 AM
    Wednesday, October 28, 2020 11:50 AM
  • okay thank you for the response
    Thursday, October 29, 2020 3:45 AM
  • You're welcome.

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Thursday, October 29, 2020 12:20 PM