Command to add text into file name in command prompt

Closed
JOCKasianOH - May 7, 2011 at 10:01 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 25, 2011 at 10:20 AM
Hello,

I am not very tech and programming savvy, so could someone please help?

I have a folder in my Desktop (say it is "TEST" folder).

I have several files (say it is only 2 for the sake for the example: "File 1 .doc" and "File 2. doc") in that folder.

I need to add consistent text into the filename into the front of the filename, so they will say "[ADDED TEXT] File 1 .doc" and "[ADDED TEXT] File 2. doc"

How do I run a command to execute the addition of text in front of all those filenames?

Thanks a bunch!



Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
May 25, 2011 at 10:20 AM
As far as I know you cannot do it thru a command. You need a script to do that. And when it comes to scripting, it is much easier to code a VB script than a DOS script.
2