Bjorn

Thanks for the advice earlier - very useful.

I've had a go with the script, but its not working; I've checked that the file is being called from the main

kixtart file (it also calls other kixtart files held in the same folder). For reference, I've entered the

script as used below - just simplified the filename / folder references - but have checked these. Am I missing

something?

Thanks again

Beejay




; * Create the TIMESTAMP
; a TIMESTAMP is not strictly necessary!

IF @MONTHNO < 10
$MONTH= "0" + "@MONTHNO"
ELSE
$MONTH= "@MONTHNO"
ENDIF

IF @MDAYNO < 10
$DAY= "0" + "@MDAYNO"
ELSE
$DAY= "@MDAYNO"
ENDIF

$timestamp = "@YEAR" + "-" + "$MONTH" + "-" + "$DAY" + " " + @TIME
$ComputerName = @WKSTA

; ----------------------------------------------------------------
;Create an antry in I:\foldername\auditfile1.txt &
;I:\foldername\auditfile2.txt relating to
;date held for filename1 & filename2 respectively
; -----------------------------------------------------------------$logfile1 = "I:\foldername\auditfile1.txt"
$logfile2 = "I:\foldername\auditfile2.txt"

$Result1 = GetFileTime("$C:\Program Files\filname1.txt")
$Result2 = GetFileTime("$C:\Program Files\filname2.txt")

$ = Open (3, $logfile1)

if len($Result1)>0
$Result1string = "$TIMESTAMP;$ComputerName;$Result1"
$x = WriteLine( 3 , $Result1string + Chr(13) + Chr(10) )
endif

$ = Close ($logfile1) ; also tried this with 3, $logfile1
$ = Open ($logfile2) ; also tried this with 3, $logfile2

if len($Result2)>0
$Result2string = "$TIMESTAMP;$ComputerName;$Result2"
$x = WriteLine( 3 , $Result2string + Chr(13) + Chr(10) )
endif
$ = Close ($logfile2) ; also tried this with 3, $logfile2
exit