I want to compare variable with multiple values with "OR" condition I batch script rather having multiple if logic.
@echo off
robocopy D:\SourceData E:\DestinationData
If %ErrorLevel% Equ 0 OR 1 OR 2 ( GoTo Success) Else ( GoTo Error)
:Success
Echo Robocopy completed successfully.
Pause
GoTo End
:Error
Echo Robo completed with some error/s.
Paude
:End
Exit