Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Create Log File --> How?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,25815
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Create Log File --> How?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Create Log File --> How? - 9/11/2005 1:49:09 PM   
  apiousgal

 

Posts: 1
Score: 0
Joined: 9/11/2005
Status: offline
Dear all,

I am having some problem in creating log file to store some log after i run the deleted files windows script.

Do any one know how to create a log file in text format?

Please show the guidance....

Thank you very much

Best regards,
ApiousgaL
 
 
Post #: 1
 
 RE: Create Log File --> How? - 9/11/2005 6:16:40 PM   
  reloader

 

Posts: 72
Score: 0
Joined: 9/5/2005
Status: offline
Dim FSO, IFile
  Set FSO = CreateObject("Scripting.FileSystemObject")
  Set IFile = FSO.CreateTextFile("c:\testfile.log", True)
  IFile.WriteLine("test")
  IFile.Close



I think it's good for u as logfile.

(in reply to apiousgal)
 
 
Post #: 2
 
 RE: Create Log File --> How? - 9/11/2005 11:19:18 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
Here is a sub that I use in several scripts, you can find it posted in the "Post a script" forum

http://www.visualbasicscript.com/m_25831/tm.htm

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to reloader)
 
 
Post #: 3
 
 RE: Create Log File --> How? - 9/12/2005 1:05:07 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
I've also posted a logging solution in the post a script section.

(in reply to mbouchard)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Create Log File --> How? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts