Results 1 to 2 of 2

Thread: Embedding a script into HTML

  1. #1
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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>

  2. #2
    Join Date
    Jun 2009
    Location
    Laputa
    Posts
    43
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    VBscript is an ungodly creation of microsoft. ECMAscript would be better to learn, as it is more widely supported, and will be around longer.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •