Skip to main content
jakes99243424
Participant
November 13, 2017
Answered

Duplication and renaming.

  • November 13, 2017
  • 3 replies
  • 375 views

Hi All,

Does anyone know of a method or approach in which I would duplicate an image multiple times and give each new file a specific name?

For example, let's say I have file "A" that needs to be duplicated 10 times and each file name has to be a predetermined name set by one of the vendors I work with.

Hope that makes sense.

Thanks.

    This topic has been closed for replies.
    Correct answer Stephen Marsh

    Presuming that the user was named “Bob” and that the source file was titled “original.png” and was on the Desktop:

    copy "C:\Users\Bob\Desktop\original.png" "C:\Users\Bob\Desktop\vendor-1-filename.png"

    copy "C:\Users\Bob\Desktop\original.png" "C:\Users\Bob\Desktop\filename_vendor_two_format.png"

    The text would be in a plain text file from say Notepad, saved with a .bat filename extension rather than .txt (double click the .bat file to run the commands).

    This of course presumes that you have a list of required filenames from your various vendors, then it is a simple enough task to prefix the bit in red before the list in blue.

    3 replies

    Inspiring
    November 13, 2017

    I think you would need to write a script.

    JJMack
    Community Expert
    Community Expert
    November 13, 2017

    That sound like a simple file copy should be able to do. Use your OS file system copy command perhaps use something like a Windows BAT command that you pass the file names the copied file should have

    JJMack
    Stephen Marsh
    Community Expert
    Community Expert
    November 13, 2017

    Probably best done at the operating system level with a simple copy command line entry or script – what OS are you using?

    jakes99243424
    Participant
    November 13, 2017

    Windows 7

    Stephen Marsh
    Community Expert
    Stephen MarshCommunity ExpertCorrect answer
    Community Expert
    November 13, 2017

    Presuming that the user was named “Bob” and that the source file was titled “original.png” and was on the Desktop:

    copy "C:\Users\Bob\Desktop\original.png" "C:\Users\Bob\Desktop\vendor-1-filename.png"

    copy "C:\Users\Bob\Desktop\original.png" "C:\Users\Bob\Desktop\filename_vendor_two_format.png"

    The text would be in a plain text file from say Notepad, saved with a .bat filename extension rather than .txt (double click the .bat file to run the commands).

    This of course presumes that you have a list of required filenames from your various vendors, then it is a simple enough task to prefix the bit in red before the list in blue.