gurjit_9
06-02-2009, 11:06 PM
Hi there,
I have this script below and would like to embed it into html code and display the results on a web page. So far I have completed the following. I have never done anything like this before. How can i get it to show the results. Can someone tell me if i am doing something wrong here please. Also I am not sure if I should be using vbscript??
<html>
<body>
<h1> Open File Users </h1>
<script type = "/vbscript">
Set objConnection = GetObject("WinNT://...../.....")
Set colResources = objConnection.Resources
For Each objResource in colResources
Wscript.Echo "Path: " & objResource.Path
Wscript.Echo "User: " & objResource.User
Wscript.Echo
Next
</script>
</body>
</html>
I have this script below and would like to embed it into html code and display the results on a web page. So far I have completed the following. I have never done anything like this before. How can i get it to show the results. Can someone tell me if i am doing something wrong here please. Also I am not sure if I should be using vbscript??
<html>
<body>
<h1> Open File Users </h1>
<script type = "/vbscript">
Set objConnection = GetObject("WinNT://...../.....")
Set colResources = objConnection.Resources
For Each objResource in colResources
Wscript.Echo "Path: " & objResource.Path
Wscript.Echo "User: " & objResource.User
Wscript.Echo
Next
</script>
</body>
</html>