replacement for lost "Execute" command

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

in vbscript there was a command called "execute" which would process a
dynamic string, vb.net dropped that feature ...

does anybody have a working solution for sale or free that will execute a
string in vb.net
 
I can't read C#, and those appear to be concept code, mostly for "eval".
I'm looking for a working solution to susbstitute for "EXECUTE" please.


thanks
 
thanks for replying, but that looks like it's for launching applications.

I'm seeking a way to execute a string.
 
Here's an outline of one method:
1. Write your code in the string out to a file.
2. Use the vbc.exe command line compiler to compile to a dll.
3. Use system.assembly namespace classes to load the dll.
4. Create an instance of the classes in the dll just loaded, and call
methods as appropriate.


--------------------
 
* (e-mail address removed) (Dot Net Team [MSFT]) scripsit:
Here's an outline of one method:
1. Write your code in the string out to a file.
2. Use the vbc.exe command line compiler to compile to a dll.
3. Use system.assembly namespace classes to load the dll.
4. Create an instance of the classes in the dll just loaded, and call
methods as appropriate.

In addition: You can use .NET's classes for compiling a DLL:

<http://dotnet.mvps.org/dotnet/samples/miscsamples/downloads/DotNetCompiler.zip>
 
Back
Top