$Result1 = GetFileTime("C:\Program Files\filname1.txt", 0)
...
WriteLine( 3 , $Result1string + Chr(13) + Chr(10) )

You define $Result1 but then you try to WritLine() something that doesn't exist.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.