How do I copy a file multiple times and rename it different every time

5 pts.
Tags:
Batch file
PowerShell
Scripting
So I am not very good with scripting and was wondering if someone could help me. What I want to do is copy a single file multiple times and have it renamed almost the same with one letter different each time. Example, I have file ReportA.r and I want to copy it multiple times and rename it like this: ReportB.r, ReportC.r, ReportD.r etc. Can someone help with a batch file or powershell or whatever that I could run that could possibly make this work? Thanks in advanced Brandon

Software/Hardware used:
CMD, Powershell
ASKED: January 12, 2012  3:13 PM
UPDATED: August 23, 2013  3:22 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Is this file on a PC or other system?

If it is for a PC you can create a batch program with a text editor.

simply change to the dir where the file is stored.
then enter the file copies.

CD\ mydir
copy myfile.txt myfileA.txt
copy myfile.txt myfileB.txt
copy myfile.txt myfileC.txt

Then save as a batch PGM for example MYCOPY.BAT

If this is to be done elsewhere we need some more information.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following