Log in

View Full Version : Embedding a script into HTML



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>

C55inator
06-23-2009, 08:48 PM
VBscript is an ungodly creation of microsoft. ECMAscript would be better to learn, as it is more widely supported, and will be around longer.