How to get result from vbscript to C#.net


hi all,

how return result vbscript c#.net? know how execute vbscript through c# need return result it. 

i found link useful

http://www.codeproject.com/articles/15741/scripting-net-applications-with-vbscript

but if script this

strcomputer = "."
strval =""
set objwmiservice = getobject("winmgmts:\\" & strcomputer & "\root\cimv2") 
set colitems = objwmiservice.execquery( _
    "select * from win32_computersystem",,48) 
foreach objitemin colitems
    strval =  objitem.manufacturer  & objitem.model & objitem.name      
next

its sample one, can same result using c#.net too, need know how return result vbscript c#.net...

please let me know if have idea/suggestion

thanks

divakar

am able retrieve values vbscript c#.net...

use below link

http://www.codeproject.com/articles/15741/scripting-net-applications-with-vbscript



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user