I have list of file names which contains .xml, .css, .js, .jsp, .java etc. I want a code that will allow you execute your function only when that file have .js or .jsp or .java extension.I don't know how to check muliple condition in if statement. that's why adding as OR..kindly help me..Thank you
FOR /F "delims=#" %%A in (demo.txt) do (
IF [/I] %%~xA==".js" OR %%~xA==".css" OR %%~xA==".java"
(
echo correct format
)
ELSE
(
ECHO incorrect format
)
)