Making Multiple copies of a File in a Folder

Sometimes there might be a need to make multiple copies of the same file. Normally in order to make a copy of a file, one would have to open the file and click “Save As” on the Menu to the save the file in a different name. The key to having multiple copies of a file is to make sure that each file is named differently otherwise they will overlap.

Fortunately this can be done quite easily by writing some commands on the Command prompt of Windows.

Steps

  1. Create a Folder where you want to save the files.
  2. Save the File in the Folder for which you want to make multiple copies.
  3. Name the File as “1” . For Example 1.pdf
  4. Open the Command Prompt in Windows and run as Administrator
  5. Change your directory to the location of the folder
  6. And then type this command

    for /l %f in (1,1,5) do copy 1.pdf %f.pdf

On the command above “5” is the number of copies to be made. Substitute that with the number of copies you would actually need.

This is how it appears Initially. There is a Text Document named “1” on a folder.

 

Screenshot (54).png

And then you type this command on the Command Prompt

Screenshot (55).png

And finally you get 9 copies of the same file!

Screenshot (56).png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s