cmdbuf.append(s);
}
}
String cmdstr = cmdbuf.toString();
ProcessStartInfo si = new ProcessStartInfo(cmd[0], cmdstr);
si.set_UseShellExecute(false);
si.set_RedirectStandardError(true);
si.set_RedirectStandardOutput(true);
si.set_RedirectStandardInput(true);
si.set_CreateNoWindow(true);
if (path != null)
{
si.set_WorkingDirectory(path.toString());
}
if (environment != null)
{
for (String key : environment.keySet())
{
si.get_EnvironmentVariables().set_Item(key, environment.get(key));
}
}
try
{
if(false) throw new cli.System.ComponentModel.Win32Exception();