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

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -