locked
JScript equivalent of VBScript Microsoft.IIsScriptHelper? RRS feed

  • Question

  •  I was looking around within VBScript file, and saw the following code:
    Set oScriptHelper = CreateObject("Microsoft.IIsScriptHelper") 
    aWebSites = oScriptHelper.FindSite("Web", Array(strPath))

    Is there a JScript equivalent for these lines of code?

    Thanks

    Jeff in Seattle

    Tuesday, November 11, 2008 7:34 PM

Answers

  • hi ,

    you can use like this 

    var oScriptHelper = new ActiveXObject("Microsoft.IIsScriptHelper");

    aWebSites = oScriptHelper.FindSite("Web", Array(strPath));


    Please Mark as answer once you are beneficial with this post.

    Wednesday, November 12, 2008 5:50 AM