How do I pass AIX Unix Environment Variables as parameters from the command line to inside a .bat file?
Posted on 2009-03-31
Let's say I have a .bat file to run in Unix-AIX and it's named TEST.bat...
TEST.bat runs a Java program that accepts two parameters, so it's contents are something like this:
java TEST <param1> <param2>
So to run this file, I just type "TEST.bat" on the command-line, right?
However, I want to remove the parameters from the .bat file and enter them on the command-line instead, as such:
> TEST.bat <param1> <param2>
What should be the contents of the .bat file now that the parameters are supplied outside it? How do you pass it into the .bat file so it can be used by the Java files as parameters in exactly the same way as the initial setup?