Populating Map Document Properties under a Folder

Discussion created by FLBB on Mar 15, 2014
Latest reply on Mar 17, 2014 by Wayne_Whitley
I wrote this script that populates some of the properties for MXDs.

mxd = arcpy.mapping.MapDocument(r"C:\test\test1.mxd")
mxd = arcpy.mapping.MapDocument(r"C:\test\test2.mxd")
mxd = arcpy.mapping.MapDocument(r"C:\test\test3.mxd")
mxd.author = "Test GIS Author"
mxd.title = "Test GIS Title"
mxd.credits = "GIS Credits"
del mxd

However, what I really want to accomplish is for a script to automatically populate the properties for each MXD under C:\test directory without having to declare each one of the paths for the MXDs individually. I tried working with ListFiles and using various arrays, no success yet. Can someone direct me to achieve this task ?