« Previous Next »

Thread: JScript Template Output

Last post 10-30-2009 4:37 PM by pjcollier. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-02-2009, 3:56 AM

    JScript Template Output

     When creating template output format what are the parameters to show it where the template file is

     var oOutputFormat = new ActiveXObject("MSUtil.LogQuery.TemplateOutputFormat");

    in logparser command I can execute  it like this -o:tpl -tpl:TEMPLATE.tpl>TEMPLATE.htm but how to write it in jscript

    thanks

  • 06-02-2009, 8:21 PM In reply to

    Re: JScript Template Output

    Try this:

    var oOutputFormat :xmlTemplateOutputFormat = new ActiveXObject("MSUtil.LogQuery.TemplateOutputFormat")

    I saw on the boards this version in BLOCKED SCRIPT

    Dim xmlTemplateOutputFormat : Set xmlTemplateOutputFormat = CreateObject("MSUtil.LogQuery.TemplateOutputFormat")

    Check out my blog for other cool tips and tricks:

    http://joelangley.blogspot.com/
  • 06-03-2009, 3:34 AM In reply to

    Re: JScript Template Output

     No it doesn't work and it gives me an error that the " : " should be " ; "

    var oOutputFormat = new ActiveXObject("MSUtil.LogQuery.TemplateOutputFormat");

    This works but it says error executing query no template file specified, I need to point out to the template but I don't know how.

    Thanks

  • 10-30-2009, 4:37 PM In reply to

    Re: JScript Template Output

    oOutputFormat.tpl = "yourTemplate.tpl";

Page 1 of 1 (4 items)
Microsoft Communities