Ashwin Sridhar wrote:Could someone have a idea why this happens?
Ashwin Sridhar wrote:I need to capture the value once I get past this block. My main aim is to capture the return value from the java method.
Ashwin Sridhar wrote:I am sorry for not helping you understand what my problem is. I am trying to pass the output from java program to batch file.
I pass the input from batch to java program and want to store the String passed from java in a variable in batch.
I write to the outputstream in Java program using System.out.println and trying to capture the same here.
The equal sign disappears while CMD is processing the FOR command (I tried that myself), and frankly I don't know why
Ashwin Sridhar wrote:I got over this by using double-quotes instead of single quotes. So my command looks like below,
But I don't find the output set in the variable decryptedtest.
I have run my jar separately for same input and it works fine.
Winston Gutkowski wrote: I could easily tell you how to do it in Unix, but not in Windows, which is why I say that you might be better off checking out an MSDN forum.
Ivan Jozsef Balazs wrote:Good old bash (Bourne -again shell) is available fortunately for Windows too.