I have an application that tries to execute with process.start
or even directly by cmd
of Windows, does not start correctly (the application itself presents an error), but if I go to the folder of it and open the executable, it opens correctly.
Within the application folder, there is only one parameter file .ini
,
I'm using the following code:
private void button_abrirr_Click(object sender, EventArgs e)
{
try {
Process.Start(@"C:\Program Files (x86)\IntegradorTEF-IP\IntegradorTEF-IP.exe");
}
catch (Exception error)
{
MessageBox.Show("Falha ao abrir arquivo!\n\n");
}
}
I believe that maybe the error is because it does not pull this .ini
file,
does anyone know of any other way to try to open the application via command prompt or by C #?