Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


URGENT !! i like to execute dynamc scripts from program (language basic)

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-12-17
Using vs2008 / .net 3.5 sr1.

I don't know if this are possible  to do.

I like to execute dynamic scripts from my program

myscriptfile.vb (textfile)

some type of script (vba, .net script or something else)

(this is only a example in vb to show how a function can work)
(it should be possible to change variables / use functions / subs / classes and so on)

module myscriot
sub mysub(byref myobj as object)

    'in this case the object are a label.
    object.text="only test"
end sub

from the code
execute some function to dynamic load the textfile into some are.
execute some function to run the dynamic function from my text file (mysub)
eg. myscrtip.mysub(me.label1)
brg /Richard
Question by:richardd65
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Accepted Solution

Mike Tomlinson earned 1000 total points
ID: 26285102
You can use the MS Script Control to do things like that:
LVL 13

Assisted Solution

Pryrates earned 1000 total points
ID: 26391674
maybe this might help you:

I posted a sample of how to compile and execute code at runtime.

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question