HighTechTalks DotNet Forums  

Replacement of COM Script Control in .NET 2.0

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Replacement of COM Script Control in .NET 2.0 in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?V2lsZGU=?=
 
Posts: n/a

Default Replacement of COM Script Control in .NET 2.0 - 07-25-2007 , 08:10 AM






I am looking for a scripting component in .NET 2.0 that can replace the
functionality of the COM script control. I am particularly interested in the
eval function. Can you help me?

Reply With Quote
  #2  
Old   
Shay Levi
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-25-2007 , 08:50 AM






In Powershell you can use the Invoke-Expression cmdlet.
At the console type "help Invoke-Expression -full" to get the details.


Shay
http://scriptolog.blogspot.com



Quote:
I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?




Reply With Quote
  #3  
Old   
Shay Levi
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-25-2007 , 08:50 AM



In Powershell you can use the Invoke-Expression cmdlet.
At the console type "help Invoke-Expression -full" to get the details.


Shay
http://scriptolog.blogspot.com



Quote:
I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?




Reply With Quote
  #4  
Old   
=?Utf-8?B?V2lsZGU=?=
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-25-2007 , 10:10 AM



I don't see how this solves my problem. I am looking for a .NET component
that I can access in C# that can evaluate mathematical expressions. This
looks like command based shell to me..... Did I miss something?

"Shay Levi" wrote:

Quote:
In Powershell you can use the Invoke-Expression cmdlet.
At the console type "help Invoke-Expression -full" to get the details.


Shay
http://scriptolog.blogspot.com



I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?





Reply With Quote
  #5  
Old   
=?Utf-8?B?V2lsZGU=?=
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-25-2007 , 10:10 AM



I don't see how this solves my problem. I am looking for a .NET component
that I can access in C# that can evaluate mathematical expressions. This
looks like command based shell to me..... Did I miss something?

"Shay Levi" wrote:

Quote:
In Powershell you can use the Invoke-Expression cmdlet.
At the console type "help Invoke-Expression -full" to get the details.


Shay
http://scriptolog.blogspot.com



I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?





Reply With Quote
  #6  
Old   
Shay Levi
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-25-2007 , 01:57 PM



Try http://www.codeproject.com/Purgatory...lect=211655 8

HTH


Shay
http://scriptolog.blogspot.com



Quote:
I don't see how this solves my problem. I am looking for a .NET
component that I can access in C# that can evaluate mathematical
expressions. This looks like command based shell to me..... Did I miss
something?

"Shay Levi" wrote:

In Powershell you can use the Invoke-Expression cmdlet. At the
console type "help Invoke-Expression -full" to get the details.

Shay
http://scriptolog.blogspot.com
I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?




Reply With Quote
  #7  
Old   
Shay Levi
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-25-2007 , 01:57 PM



Try http://www.codeproject.com/Purgatory...lect=211655 8

HTH


Shay
http://scriptolog.blogspot.com



Quote:
I don't see how this solves my problem. I am looking for a .NET
component that I can access in C# that can evaluate mathematical
expressions. This looks like command based shell to me..... Did I miss
something?

"Shay Levi" wrote:

In Powershell you can use the Invoke-Expression cmdlet. At the
console type "help Invoke-Expression -full" to get the details.

Shay
http://scriptolog.blogspot.com
I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?




Reply With Quote
  #8  
Old   
=?Utf-8?B?V2lsZGU=?=
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-26-2007 , 04:24 AM



I was hoping that Microsoft would provide this type of functionality in the
..NET framework or an add on to the framework. What happened to VSA in 2.0?
It's not only the evaluation I am interested in, but also the scripting
functionality of the script control. My impression now is that this
functionality is totally missing in .NET 2.0. I find that very strange, since
this is a very powerful component. Why is VSA removed? And what is the
strategy of scripting in .NET?

"Shay Levi" wrote:

Quote:
Try http://www.codeproject.com/Purgatory...lect=211655 8

HTH


Shay
http://scriptolog.blogspot.com



I don't see how this solves my problem. I am looking for a .NET
component that I can access in C# that can evaluate mathematical
expressions. This looks like command based shell to me..... Did I miss
something?

"Shay Levi" wrote:

In Powershell you can use the Invoke-Expression cmdlet. At the
console type "help Invoke-Expression -full" to get the details.

Shay
http://scriptolog.blogspot.com
I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?





Reply With Quote
  #9  
Old   
=?Utf-8?B?V2lsZGU=?=
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 07-26-2007 , 04:24 AM



I was hoping that Microsoft would provide this type of functionality in the
..NET framework or an add on to the framework. What happened to VSA in 2.0?
It's not only the evaluation I am interested in, but also the scripting
functionality of the script control. My impression now is that this
functionality is totally missing in .NET 2.0. I find that very strange, since
this is a very powerful component. Why is VSA removed? And what is the
strategy of scripting in .NET?

"Shay Levi" wrote:

Quote:
Try http://www.codeproject.com/Purgatory...lect=211655 8

HTH


Shay
http://scriptolog.blogspot.com



I don't see how this solves my problem. I am looking for a .NET
component that I can access in C# that can evaluate mathematical
expressions. This looks like command based shell to me..... Did I miss
something?

"Shay Levi" wrote:

In Powershell you can use the Invoke-Expression cmdlet. At the
console type "help Invoke-Expression -full" to get the details.

Shay
http://scriptolog.blogspot.com
I am looking for a scripting component in .NET 2.0 that can replace
the functionality of the COM script control. I am particularly
interested in the eval function. Can you help me?





Reply With Quote
  #10  
Old   
John Vottero
 
Posts: n/a

Default Re: Replacement of COM Script Control in .NET 2.0 - 08-03-2007 , 12:31 PM



"Wilde" <Wilde (AT) discussions (DOT) microsoft.com> wrote

Quote:
I don't see how this solves my problem. I am looking for a .NET component
that I can access in C# that can evaluate mathematical expressions. This
looks like command based shell to me..... Did I miss something?

You can call PowerShell like this:

using (RunspaceInvoke ri = new RunspaceInvoke())
{
Collection<PSObject> results = ri.Invoke("2 + 2");

Console.WriteLine("Result:");
foreach (PSObject po in results)
{
Console.WriteLine(po.BaseObject);
}
}





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.