Calling VB Script from C# project.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to call a VB script from within C# code (both included in a project file) and pass parameters. If so, how

Thanks in advance.
 
You could use the System.Diagnostics.Process class to launch the script.
This requires that Windows script host is already installed on the machine.
--------------------
Thread-Topic: Calling VB Script from C# project.
thread-index: AcQAuwKIXd9iZc/SQdSATozB+rY5XQ==
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
From: "=?Utf-8?B?Sm9zdWE=?=" <[email protected]>
Subject: Calling VB Script from C# project.
Date: Tue, 2 Mar 2004 17:01:07 -0800
Lines: 3
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.csharp
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:225882
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Is it possible to call a VB script from within C# code (both included in a
project file) and pass parameters. If so, how?

Thanks in advance.
 
Back
Top