Monday, October 02, 2006

Starting another application using .Net code

In .Net, I came across to start an external program through scripting. This is a very simple task but should make sure that the external application has rights when it is called to run. For example, had an experience to call another console application which will be called by a web part for a web page in sharepoint. Web part is installed with InstallAssemblies program, which install it in the Global Assembly Cache (GAC) and the console application will triggger some functions when it is called by the webpart. OK, enough with the bla bla stuff and the simple line of code is,

[C#.Net]
System.Diagnostics.Process.Start(string filename,string arguments);


Cheers!

No comments: