Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute File frim C# 1

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
Hi all

How do you go about executing a file from within C# code? I need to execute a file with parameters that will change on a daily basis and I'd like to do it via C#.

Any advice would be much appreciated.

Thanks and kind regards

Craftor
:cool:
 
You can execute a file by using the Process class under System.Diagnostics. Like this:

Code:
System.Diagnostics.Process.Start("filename.exe");
 
Excellent - thanks - that was exactly what I was looking for!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top