.Net for VBScript library (interop.msscriptcontrol.dll)

We use interop.msscriptcontrol.dll to execute simple VBScript variable code ("Today - 1"). Our application is a component other than COM, with the exception of this. We were looking for a .Net VBScript replacement, but we could not find it.

Is there a replacement for VBScripting for .Net?

+3
source share
2 answers

In the end, I used the free Codefluent runtime mechanism to replace msscriptcontrol.dll:

http://www.softfluent.com/products/codefluent-runtime-client

+2
source

, WebBrowser VBScript "Now-1" WebBrowser document.title, #:

WebBrowser wb = new WebBrowser();
wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(
    (object _sender, WebBrowserDocumentCompletedEventArgs _e) =>
    {
        MessageBox.Show(wb.Document.Title);
    }
);
wb.DocumentText = @"
<HTML>
<HEAD>
<TITLE>Hello</TITLE>
<SCRIPT language=""VBScript"">
document.title = Now - 1
</SCRIPT>
</HEAD>
<BODY/>
</HTML>";

, :

  • .

- , , .

+2

All Articles