473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Scripting engine in my .NET app

Is there some class or engine in the .NET framework capable to manage (or
run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some numbers. (I
mean, if I get a 101, then I have to check some tables in a DB, If I get a
102z, then I need to check in some others tables and do some other
validation).
Due this requeriment, I was thinking in use some kind of script to do that.
Based on this, I only will need a folder and text files with the script
writted with in. And then, when I get the number, the app will load the file
and run the script.

Is this possible??
Jun 14 '06 #1
6 1776
You can write your script in c# or vb.net and have it in your own
directory. load the file when it required and compile it at runtime and
execute it in .net itself. Dig CSharpCodeProvider class.

"JLuis Estrada" <fr********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Is there some class or engine in the .NET framework capable to manage (or
run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some numbers.
(I mean, if I get a 101, then I have to check some tables in a DB, If I
get a 102z, then I need to check in some others tables and do some other
validation).
Due this requeriment, I was thinking in use some kind of script to do
that. Based on this, I only will need a folder and text files with the
script writted with in. And then, when I get the number, the app will load
the file and run the script.

Is this possible??

Jun 14 '06 #2
Probably you can use this

http://www.vb-tips.com/default.aspx?...1-2b03e1a439ae

I hope this helps,

Cor

"JLuis Estrada" <fr********@hotmail.com> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
Is there some class or engine in the .NET framework capable to manage (or
run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some numbers.
(I mean, if I get a 101, then I have to check some tables in a DB, If I
get a 102z, then I need to check in some others tables and do some other
validation).
Due this requeriment, I was thinking in use some kind of script to do
that. Based on this, I only will need a folder and text files with the
script writted with in. And then, when I get the number, the app will load
the file and run the script.

Is this possible??

Jun 14 '06 #3
Sounds good, let me check it.
"Balasubramanian Ramanathan" <rb***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
You can write your script in c# or vb.net and have it in your own
directory. load the file when it required and compile it at runtime and
execute it in .net itself. Dig CSharpCodeProvider class.

"JLuis Estrada" <fr********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Is there some class or engine in the .NET framework capable to manage (or
run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some numbers.
(I mean, if I get a 101, then I have to check some tables in a DB, If I
get a 102z, then I need to check in some others tables and do some other
validation).
Due this requeriment, I was thinking in use some kind of script to do
that. Based on this, I only will need a folder and text files with the
script writted with in. And then, when I get the number, the app will
load the file and run the script.

Is this possible??


Jun 14 '06 #4
your solutions sounds good, but I need to carry on a COM object, and you
should know more about it than me, its very awful to handle with it.

but tnx any way
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:e%****************@TK2MSFTNGP02.phx.gbl...
Probably you can use this

http://www.vb-tips.com/default.aspx?...1-2b03e1a439ae

I hope this helps,

Cor

"JLuis Estrada" <fr********@hotmail.com> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
Is there some class or engine in the .NET framework capable to manage (or
run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some numbers.
(I mean, if I get a 101, then I have to check some tables in a DB, If I
get a 102z, then I need to check in some others tables and do some other
validation).
Due this requeriment, I was thinking in use some kind of script to do
that. Based on this, I only will need a folder and text files with the
script writted with in. And then, when I get the number, the app will
load the file and run the script.

Is this possible??


Jun 14 '06 #5
Hello JLuis,

I would suggest a plugin based approach rather than a scripting approach.
Once you define a course of action for a particular number that action seems
like it would be fixed.. which is reflected in the nature of a plugin.. however
a script lends itsself to constant editing and tweaking.. even complete rewrites..
which doesnt really reflect a fixed course of action.

-Boo
your solutions sounds good, but I need to carry on a COM object, and
you should know more about it than me, its very awful to handle with
it.

but tnx any way
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:e%****************@TK2MSFTNGP02.phx.gbl...
Probably you can use this

http://www.vb-tips.com/default.aspx?...87-86d1-2b03e1
a439ae

I hope this helps,

Cor

"JLuis Estrada" <fr********@hotmail.com> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
Is there some class or engine in the .NET framework capable to
manage (or run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some
numbers.
(I mean, if I get a 101, then I have to check some tables in a DB,
If I
get a 102z, then I need to check in some others tables and do some
other
validation).
Due this requeriment, I was thinking in use some kind of script to
do
that. Based on this, I only will need a folder and text files with
the
script writted with in. And then, when I get the number, the app
will
load the file and run the script.
Is this possible??

Jun 14 '06 #6
WOW

Its quite amazing all the stuff you can do with this.

Now Im working how to keep it in memory as a library.

when I make a workfull example, Ill post it!

Regards

JLuis!

"JLuis Estrada" <fr********@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP02.phx.gbl...
Sounds good, let me check it.
"Balasubramanian Ramanathan" <rb***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
You can write your script in c# or vb.net and have it in your own
directory. load the file when it required and compile it at runtime and
execute it in .net itself. Dig CSharpCodeProvider class.

"JLuis Estrada" <fr********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Is there some class or engine in the .NET framework capable to manage
(or run) script code (like VB script) embedded in my app????

Thats because I have an APP that grows very fast, and one of the
requeriments its the abilyto to add new processing based in some
numbers. (I mean, if I get a 101, then I have to check some tables in a
DB, If I get a 102z, then I need to check in some others tables and do
some other validation).
Due this requeriment, I was thinking in use some kind of script to do
that. Based on this, I only will need a folder and text files with the
script writted with in. And then, when I get the number, the app will
load the file and run the script.

Is this possible??



Jun 15 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wole | last post by:
Hi. I really need help with a regular expression in ASP. I need a regex pattern that will grab a select or textarea tag in an HTML file. If I run the pattern I should get <select...
2
by: Som | last post by:
A clients website is a combination of ASP pages and COM/COM+ objects - The following errors are being reported. Once this happens on the server the entire script engine fails... we have to...
2
by: dito | last post by:
I have a .asp page that contains an activex componet. When I launch it in a browser, it returns an error that the viewer is unable to create it's resource objects. "To rectify this problem,...
1
by: MatthewRoberts | last post by:
Howdy All, I am having difficulty with two-way communication across AppDomains in an attempt to dynamically script applications. Everything works as expected, except when using ByRef parameters....
19
by: Shailesh Humbad | last post by:
Has anyone ever heard of a c++ web 'scripting' engine? I think it would be fairly easy to make one. All that is needed is an intermediary that compiles the code on demand and caches the...
9
by: Code4u | last post by:
I have an application that manipulates large arrays of image data of various types, all the usual arithmetic operations on the data objects are supported. With careful design and tricks similar to...
17
by: Karl Irvin | last post by:
To use the Textstream object, I had to set a Reference to the Microsoft Scripting Runtime. This works good with A2000 Is the Scripting Runtime included with A2002 and A2003 so the Reference...
4
by: Michael Andersson | last post by:
Hi! I'm writing a small game engine in c# and I'm in great need of a scripting language. Does anyone know of such a language? Would it be possible to use the VSA in some way to do this? Best...
2
by: JosAH | last post by:
Greetings, Introduction Java is not Javascript and most of the times when questions end up in the wrong forum, they're moved to the other forum as soon as possible. Accidentally this article...
3
Banfa
by: Banfa | last post by:
The project I work on has a bespoke hardware platform which is designed to go into a variety of different situations. However to keep things simple we really want the software for the platform to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.