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)
for each objitem in 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
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
Post a Comment