Hi,

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

Re: Calling TCL scripts from C# 80 80

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.

Re: Calling TCL scripts from C# 80 80

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!

Re: Calling TCL scripts from C# 80 80
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 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.