Execute a .exe and additional parameters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, i have 2 questions, first, there is a function to execute programs?
second, for example, i execute a program with this parameters:
"C:\myProg.exe" -filename were filename is the name of the file that i want
to the program open, how i can make the program "Read" it?
 
using System.Diagnostics;

Process p = Process.Start(@"C:\myProg.exe", "-filename");
 

Ask a Question

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.

Ask a Question

Back
Top