diff --git a/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java b/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java index 6ac9eda..aedc1ad 100644 --- a/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java +++ b/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java @@ -162,7 +162,7 @@ public class CropAssetCopyTool { int num = Integer.parseInt(oldName.substring(oldName.length() - 3)); num++; newName = oldName.substring(0, oldName.length() - 3) + String.format("%03d", num) + "." - + FilenameUtils.getExtension(oldName); + + FilenameUtils.getExtension(targetFile.getName()); } targetFile = new File(targetDir + "\\" + newName); }