But this will not work as java code is not executing. Although the batch file works fine when pressed in Windows Explorer or when launched at the command prompt.
Since this works great when the batch file is a single DOS command, I think this is somehow due to the fact that Java code takes ~ 20 minutes to run. I am using the following code
var si = new ProcessStartInfo();
si.CreateNoWindow = true;
si.FileName = batchFileName;
si.UseShellExecute = false;
Process.Start(si);
What am I doing wrong?
source
share