Answer the question
In order to leave comments, you need to log in
What could be the reason for the cmd error?
Hello!
I am writing a batch file with this code:
@echo off
if java -jar "SOAPClientDummy02.jar" input.txt | find /i "Stubs on dummy02 work correctly" goto success
echo Something gooes with errors on dummy02
:success
echo Stubs on dummy02 work correctly
pause
-jar was unexpected at this time
Answer the question
In order to leave comments, you need to log in
Because you have a java ... call in an if statement.
I didn't understand what you mean by that.
In any case, this is not correct - if cannot call external programs like in bash.
This is what is reported in the error, although the error may seem somewhat ridiculous at first glance, but on the second, everything is fine :-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question