I created a code that opens a program, but the program needs the DLLS / Folders - in the folder it is located, so when I run it from the error, it seems that it is not picking up the DLLS / Folders (if I perform normal, usually the program).
Do I have to use the Stream
process instead of FileDialog
?
private void button5_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "Programa (*.exe)|*.exe";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
Process.Start(openFileDialog1.FileName);
}
}