Rich,

I just create a file object, and output Text with HTML code to it to format the HTM 
file for making web based report.  Since HTML is just text anyway you can 
programatically format it.

Here is just a snippet for example:

'[Create ASP log file]

Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")

set asplog = fso.OpenTextFile("log\autounlock.asp",8,true)
        asplog.Writeline("<HR>")
        asplog.writeline("<center><table border='1' padding='2' align='center'>")
        asplog.writeline("<tr>")
        asplog.Writeline("<td align='center' colspan=4><Font color=Blue size=3>[ 
</font><Font color=Red size=3>"&NOW&"</font><Font color=Blue size=3> ]</Font></td>")
        asplog.writeline("</tr>")
        asplog.writeline("<tr>")
        asplog.Writeline("<td colspan='4' align='center'><HR></td>")
        asplog.writeline("</tr>")

'[End Create ASP Log File]

Original Message:
>From: Rich Milburn <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [ActiveDir] vbscript output to html
>Date: Mon, 3 Nov 2003 13:28:11 -0600

>While scripting seems to be a good topic today, perhaps I'll throw this one
>out there:
>
> 
>
>Does anyone know a q'n'd way to output vbscript results to html?  We're
>trying to get users to change passwords till the average age comes down, and
>while I have some good tools (courtesy of joeware.net) that will show me the
>info I need, it would be nice if I could keep this running and put a page up
>for managers to see how the progress is going.... Hmm I might >> this to a
>csv file or something for graphs... any ideas?
>
> 
>
>(PS yes I am doing research on my own, but my first exposure to vbscript was
>last Thursday - I managed to avoid it for 10+ years of Windows but I guess
>it's finally caught up with me! :-) )
>
> 
>
>Rich
>
> 
>
>-------APPLEBEE'S INTERNATIONAL, INC. CONFIDENTIALITY NOTICE-------
>PRIVILEGED / CONFIDENTIAL INFORMATION may be contained in this message or
>any attachments. This information is strictly confidential and may be
>subject to attorney-client privilege. This message is intended only for the
>use of the named addressee. If you are not the intended recipient of this
>message, unauthorized forwarding, printing, copying, distribution, or using
>such information is strictly prohibited and may be unlawful. If you have
>received this in error, you should kindly notify the sender by reply e-mail
>and immediately destroy this message. Unauthorized interception of this
>e-mail is a violation of federal criminal law. Applebee's International,
>Inc. reserves the right to monitor and review the content of all messages
>sent to and from this e-mail address. Messages sent to or from this e-mail
>address may be stored on the Applebee's International, Inc. e-mail system.
>
>


List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to