Hi Bryce,
That's it! the variable I was using was correct, but I had it set ou like this:
$ = WriteProfileString('\\server\shares\log.ini,@USERID,$file.name,$file.datelastmodified,$file.path)

Thanks everso much for that, one other question. using dirplus, is there a way of searching using part of the filename?
the command in dos is dir c:\blah*.exe
Looking through the dirplus kix, it shows you can search on extension, but all the ways I have tried to add the part of the filename it, it fails.

Thanks again

Andy