ForensiT Homepage
Forum Home Forum Home > ForensiT Support > Domain Migration
  New Posts New Posts RSS Feed - Follow-on script log
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Follow-on script log

 Post Reply Post Reply
Author
Message
lavoied View Drop Down
Newbie
Newbie


Joined: 31 Jan 2013
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote lavoied Quote  Post ReplyReply Direct Link To This Post Topic: Follow-on script log
    Posted: 31 Jan 2013 at 10:41am
Hello,
Is it possible to add line the the log file in the follow-up script?

thanks
Back to Top
Support View Drop Down
Moderator Group
Moderator Group


Joined: 09 Nov 2006
Location: United Kingdom
Status: Offline
Points: 1844
Post Options Post Options   Thanks (0) Thanks(0)   Quote Support Quote  Post ReplyReply Direct Link To This Post Posted: 31 Jan 2013 at 12:34pm
Yes, it is quite easy. With vbscript you would use something like this:
Quote Option Explicit
Const ForReading = 1, ForWriting = 2, ForAppending = 8

Dim objFSO, LogFile, objFile
LogFile="C:\Users\Public\Documents\migrate.log"

Set objFSO=CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(LogFile, ForAppending, True)

objFile.Write "Write Something" & vbCrLf
objFile.Close

You can get the log file path from the <Log> value in Profwiz.config.
Back to Top
lavoied View Drop Down
Newbie
Newbie


Joined: 31 Jan 2013
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote lavoied Quote  Post ReplyReply Direct Link To This Post Posted: 31 Jan 2013 at 1:57pm
It work well...
Thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.

This page was generated in 0.063 seconds.