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

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'