Is it possible to do the following C# Code in Java?
Process.Start("c:/test.exe", "filearg1,filearg2,filearg3");
Yes, but you need to use Runtime and Process classes.
You can use something like this:
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("c:/test.exe filearg1,filearg2,filearg3");
I recommend that you read "When Runtime.exec() won't" article.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With