I am trying with windows batch command. not Getting the result as expected.
i am passing 4 args to a batch file and inside the batch file i am checking if the 4th arg value is "1"
here the code snippet.
IF %%4=="1" (
echo "Error Level is zero"
echo 'Creating web Ears...'
set cd=%CD%
echo "Current Directory: " %cd%
)
Even after passing the exact value 1, if condition doesn't evaluate to true. Can someone please identify in mistake?
mybat.bat x 5 c 1
batbatch files, take a look at power shell - it is much more powerful.