Can any body help me in knowing how to pass a parameter from a Java program to a Batch file which is also used in the same java program.
The following stub indicates the piece of code where I run the batch file
Runtime rt = Runtime.getRuntime();
rt.exec("C:/test.bat");
I need to know if I could pass some parameters to test.bat which is used in the above snippet.