I ran a test but you know ... I'm don't know anything in python. I tried place my output files in C:\Export. Can you tell me what syntax should I use ?
>> mxd = arcpy.mapping.MapDocument("CURRENT")
... # Iterate map series pages
... for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
... mxd.dataDrivenPages.currentPageID = pageNum
... outFile = "C:\Export" + "\\" + mxd.dataDrivenPages.pageRow.getValue(mxd.dataDrivenPages.pageNameField.name) + ".jpg"
... arcpy.mapping.ExportToJPEG(mxd, outFile, resolution=150, world_file=True)
...
Runtime error
Traceback (most recent call last):
File "<string>", line 5, in <module>
TypeError: cannot concatenate 'str' and 'int' objects