DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 25 Jul 2007 06:10:06 -0700,    posted on: microsoft.public.dotnet.scripting        back       

Thread Index
  1    Wilde
          2    Shay Levi
                 3    Wilde
                        4    Shay Levi
          5    Wilde
          6    John Vottero


Replacement of COM Script Control in .NET 2.0   
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?
Date:Wed, 25 Jul 2007 06:10:06 -0700   Author:  

Re: Replacement of COM Script Control in .NET 2.0   
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?
> 
Date:Wed, 25 Jul 2007 13:50:05 +0000 (UTC)   Author:  

Re: Replacement of COM Script Control in .NET 2.0   
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?
> > 
> 
> 
> 
Date:Wed, 25 Jul 2007 08:10:01 -0700   Author:  

Re: Replacement of COM Script Control in .NET 2.0   
Try http://www.codeproject.com/Purgatory/Expr.asp?df=100&forumid=276649&exp=0&select=2116558

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?
>>> 
Date:Wed, 25 Jul 2007 18:57:59 +0000 (UTC)   Author:  

Re: Replacement of COM Script Control in .NET 2.0   
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:


> Try http://www.codeproject.com/Purgatory/Expr.asp?df=100&forumid=276649&exp=0&select=2116558
> 
> 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?
> >>> 
> 
> 
> 
Date:Thu, 26 Jul 2007 02:24:01 -0700   Author:  

Re: Replacement of COM Script Control in .NET 2.0   
"Wilde"  wrote in message 
news:36D95B38-C95F-4D88-8520-B8DB306644E1@microsoft.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?
>


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);
                }
            }
Date:Fri, 3 Aug 2007 13:31:45 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us