Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: Windows Scripts and Batch Files .: VB Script for Logging events

VB Script for Logging events

Set fso = CreateObject("Scripting.FileSystemObject")

sPath = StrReverse(WSCript.ScriptFullName)

sPath = Right(sPath, Len(sPath) - (InStr(sPath, "\")-1))

sPath = StrReverse(sPath)   

Set f = fso.OpenTextFile(StrPath & sLogFile, ForWriting, True)

f.WriteLine s

 

'wscript.echo s

 

set oInstance=Nothing

set oResults=Nothing

set oSvc=Nothing

set wshNEt=Nothing

set oLocator=Nothing

set MyGoodMsg=Nothing

set MyInput=Nothing

 

wscript.quit


How helpful was this article to you?

Related Articles

article How to assign Custom Tasks to Events in Vista
As mentioned earlier in my "Working...

(No rating)  3-26-2008    Views: 169   
article How to Adding Events to Multiple Mailboxes using Exmerge
Introduction Let's say someone...

(No rating)  3-13-2008    Views: 159   
article How to configure ODBC logging in IIS
We strongly recommend that all users...

(No rating)  5-15-2008    Views: 78   

User Comments

Add Comment
No comments have been posted.