J
Jordan S.
I have a VBScript that runs on the server. I want to call that script from
an ASP.NET Web application. How can I do that?
Thanks!
an ASP.NET Web application. How can I do that?
Thanks!
It is possible to have the "same" WMI script in C#.
Jurgen_O said:Hi Jordan,
It is possible to have the "same" WMI script in C#.
Take a look at Classes in the System.Management namespace.
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/using_wmi.asp
HTH.
J.O.
Jordan S. said:RE:
<< But I think you should give us more details about what you want and what
you have. >>
One of my network engineering friends has a VBS script that uses WMI to
determine [which user is connected to a remote machine]. He wants to be able
to run that script and display returned information (user info from remote
machine) via an ASP.NET Web application [page]. While I am familiar with
ASP.NET, I have never attempted to have my ASP.NET Web applications interact
with or use VBScript. My friend said he already has the VBScript ready to
go - so I thought that if there was an easy way to somehow call it and get
its return data into the ASP.NET app, then we might want to go that route.
Same process (direct communication) would be nice - but I could always pipe
the script results to a text file, then read that (but that's rather ugly,
IMO).
Maybe it would be better to translate the WMI logic in the script into
native .NET (perhaps using someting in System.DirectoryServices) and omit
the VBScript altogether.
Any feedback is appreciated.
-Thanks
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.