-
Embedding a script into HTML
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>
-
-
VBscript is an ungodly creation of microsoft. ECMAscript would be better to learn, as it is more widely supported, and will be around longer.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks