Java to batch file -


How can I pass a parameter to a Java program in a batch file that I can get help Use same Java program.

The following stub indicates the piece of code where I run the batch file

  runtime RT = runtime.gettime (); Rt.exec ("C: /test.bat");  

I need to know if I can pass some parameters of test.bat which is used in the snippet above.

You can use a string array as Runtime.getRuntime () in the form of AG. Exec ()

  Public Process exec (string [] cmdarray throws IOException  

Comments

Popular posts from this blog

SQL/PHP: Table design question -

NHibernate Passing Session to the Repository -

asp.net - How do I pass login ID as parameter to SharePoint login page? -