Hi,

I want to call TCL scripts from a C# project for some functions. How can I do that?

Can you use System.Diagnostics.Process.Start? I'm not really sure how tcl programs are run because they're interpreted, but I'm guessing it works like perl programs and the interpreter is automatically started when you try to execute the script.

Hey,

Thanks for the solution. But I am new to programming in C#. Could u give me a code snippet where you call a Perl Script in C#.

Thanks again!

using System.Diagnostics;

namespace Hamrick {
  static class Program {
    static void Main() {
      Process.Start( "myscript.pl" );
    }
  }
}

I guess you'd just change the .pl to .tcl and be good.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.