ForensiT Homepage
Forum Home Forum Home > ForensiT Support > Domain Migration
  Active Topics Active Topics
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Follow-on script log

 Post Reply Post Reply
Author
Message Reverse Sort Order
  Topic Search Topic Search  Topic Options Topic Options
lavoied View Drop Down
Newbie
Newbie


Joined: 31 Jan 2013
Online Status: Offline
Posts: 3
  Quote lavoied Quote  Post ReplyReply Direct Link To This Post Topic: Follow-on script log
    Posted: 31 Jan 2013 at 1:57pm
It work well...
Thanks
Back to Top
Support View Drop Down
Moderator Group
Moderator Group


Joined: 09 Nov 2006
Location: United Kingdom
Online Status: Offline
Posts: 1311
  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:
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
Online Status: Offline
Posts: 3
  Quote lavoied Quote  Post ReplyReply Direct Link To This Post 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
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.027 seconds.