Hi,
I am using the WriteProfileString command. I want to output file name, file location and modified date to a txt file.

I have managed to get the name and modified date done using $file.name and $file.datelastmodified. But I cannot find how to output the location. I have tried $file.location and $file.path, that just throws the whole thing out and leaves the output txt file blank. Does anyone know what $file variable I should be using.

Thanks,

Andy