If I understand you correctly, you are trying to execute another program from within your Windows Forms app, and the FileInfo object you are referring to holds the file information for the executable. You should use the System.Diagnostics.Process class. For example, if your FileInfo object were called myFile:
Process myProcess = new Process();
myProcess.StartInfo.FileName = myFile.FullName;
myProcess.StartInfo.Arguments = "<your options go here";
myProcess.Start();
The Process class has a large number of other members you might find useful. I suggest looking it up in the documentation.
If I understand you correctly, you are trying to execute another app from within your Windows Forms application, and the FileInfo object you are referring to holds the information for the executable. You should use the System.Diagnostics.Process class. For example, if your FileInfo object were called fi:
Process p = new Process();
p.StartInfo.FileName = fi.FullName;
p.StartInfo.Arguments = "<your options go here>";
p.Start();
The Process class has many other members you might find useful. I suggest looking it up in the documentation.
thx...
If I understand you correctly, you are trying to execute another program from within your Windows Forms app, and the FileInfo object you are referring to holds the file information for the executable. You should use the System.Diagnostics.Process class. For example, if your FileInfo object were called myFile:
Process myProcess = new Process();
myProcess.StartInfo.FileName = myFile.FullName;
myProcess.StartInfo.Arguments = "<your options go here";
myProcess.Start();
The Process class has a large number of other members you might find useful. I suggest looking it up in the documentation.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.