Saleem,
Like I said in my first post!
quote:
You don't provide enough information.
In your code, you do:
$dt=GetFileTime ("\\server\eventlog\$dr")
? $dt

If you would have said that $dt returns nothing in your first instead of tenth post, we could have solved this with less than 22 posts!

If you cannot learn to provide more details, I will not look at any more of your posts.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.