How to use"NAME%i%.csv" in arcpy to name an output csv file?

المشرف العام

Administrator
طاقم الإدارة
I am using arcpy to describe datasets and output the results into a csv file. I am doing this via a script in arctoolbox and would like to save the file in the same folder as the file being analysed. I don´t want to overwrite any existing files, and thus would like to simply add a date or number to the file name.

By using %i% in the GetParameterAsText(0)field arcpy gives me the error that the file already exists, so how can I make this work?



أكثر...
 
أعلى