Re: Executing scripts using C#
From: cody (no_spam_deutronium_at_gmx.net)
Date: 05/26/04
- Next message: cody: "Re: Calling the base class constructor"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Manually generating Interop assembly failing......"
- In reply to: Vinay: "Executing scripts using C#"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 May 2004 15:12:36 +0200
You can simply call the Perl interpreter from your program and pass the *.pl
files you want to execute as parameter. Then you can simply intercept the
output of the process and use it as you want.
-- cody Freeware Tools, Games and Humour http://www.deutronium.de.vu || http://www.deutronium.tk "Vinay" <anonymous@discussions.microsoft.com> schrieb im Newsbeitrag news:BFD95A6F-D97C-4C0F-970F-CB9E2CB7006A@microsoft.com... > Hi, > For some reason I have to execute perl/vbscripts from my C# code.Currently I do have .pl files which I am executing using Process class in C#. But these scripts are becoming unmanagable. SO can I embed these scripts in my .cs files with some block as <Script> like we do in HTML? > For Example, > Sample.cs > > public class CSharpClass > { > public invokeScript > { > } > public void invokeScript() > { > [SCript : Perl] > //Perl code > [SCript : Perl] > > } > } > > TIA, > Vinay
- Next message: cody: "Re: Calling the base class constructor"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Manually generating Interop assembly failing......"
- In reply to: Vinay: "Executing scripts using C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|