shell

  • Thread starter Thread starter Guest
  • Start date Start date
Hi Julia,

If your question is "How" to call / execute a system process (shell !!!) its
very simple..

The following code will invoke the calculator from a C# program

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="calc";
proc.Start();

If your question is "use" (!!!) shell command from C#, then As Far As I
Know.. the framework does not provide any managed way to achieve this.. You
need to fall upon interop.

HTH,

Happy Coding
 
Back
Top