VbScript in C# app

  • Thread starter Thread starter Daniel Reber
  • Start date Start date
D

Daniel Reber

I have a VB application that I am staring to convert. One thing that I need
to do is execute VbScript. Can c# do this?

Thanks

Dan Reber
Datamasters, Inc
 
Daniel Reber said:
I have a VB application that I am staring to convert. One thing that I need
to do is execute VbScript. Can c# do this?

Define "execute VBScript".

Do you mean something like...
a.) Spawn a script and have it go off and do something
similar to double-clicking on the .VBS file on
your desktop

b.) Execute a script in-process and allow it to
work with and manipulate your application
(similar to VBA in MS Office)

-c
 
You asked for VBScript. VBScript and the Active Scripting Engine operate in
a COM oriented world. If you want to script in a .NET language (VB.NET, for
instance), the answer would be different, since assemblies can be
dynamically generated in the .NET environment (although that's not good for
frequent creating and loading assemblies of the same script, since each
assembly is retained in memory in this version of the .NET framework). But
for VBScript, the short and easiest answer is the one I gave you.

Jon
 
Back
Top