I´m trying to use a variable as part of the output path of a shutil command. Unfortunately I couldn´t work it out how to do it. Can anybody help?
import arcpy import shutil Name = arcpy.GetParameterAsText(0) shutil.copyfile("C:\\test.txt", "C:\\%Name%.txt")
This question here is similar, but was never answered: ArcGIS 10 Model Builder In-line variable substitution for input data path