George, What sort of script? You can write out a WSH script and execute it like this in C#:
// Declare locals. Process runner = null; StreamWriter writer = null; // Write out the script. writer = new StreamWriter("runme.vbs"); writer.WriteLine("Call MsgBox(\"Hello World\")"); writer.Close(); // Execute the script and wait // for it to exit. runner = new Process(); runner.StartInfo = new ProcessStartInfo("runme.vbs"); runner.Start(); runner.WaitForExit(); If you are looking to do this as an extensibility mechanism I would recommend that you look at VSA first: ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfMicrosoftVsa.htm Hope this helps. ---------------------------------------- - Mitch Denny - [EMAIL PROTECTED] - +61 (414) 610-141 - -----Original Message----- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of george antony Sent: Wednesday, 5 June 2002 15:19 To: [EMAIL PROTECTED] Subject: [DOTNET] need very Urgently - scripting in .net hi all Can any one tell me how to write and execute a script in .net regards george __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.