Okay, so I can feel that I am so close to solving this issue with the help of Jason (below) but I have modified to use as a script. The GetParameterAsText returns the following error when trying to execute:
: [Error 3] The system cannot find the path specified: u"'C:\Users\bob\Documents\folder\file.mxd';'C:\Users\folder\Documents\Folder\file.mxd';'C:\Users\folder\Documents\folder\file.mxd'\*.*"
Anyone know what is wrong with my code to keep getting this error?
import arcpy, os, string #Read input/output folder path from script tool folderPath = arcpy.GetParameterAsText(0) outPNGfolder = arcpy.GetParameterAsText(1) for filename in os.listdir(folderPath): fullpath = os.path.join(folderPath, filename) if os.path.isfile(fullpath): basename, extension = os.path.splitext(fullpath) if extension.lower() == ".mxd": mxd = arcpy.mapping.MapDocument(fullpath) arcpy.mapping.ExportToPNG(mxd, basename + '.png')