-1
I created a code that opens a program, but the program needs the DLLS/Folders - in the folder that is located, so when I run it from the error, it seems that it is not getting the DLLS/Folders (if I run normal, it normally opens the program).
Do I have to use the process Stream
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);
}
}
I got it thanks, I just wanted to +1 thing, open the CMD in the case, and execute the Ipconfig command when it opens.
– Vinicius
@Vinicius https://stackoverflow.com/a/12779667/6241184
– vinibrsl