Rename all the files in a folder - DOS or Windows

acollins

Board Regular
Joined
Aug 1, 2007
Messages
63
Does anyone know how I can rename all the files in one folder, each with different length names? What I want to do is put a "L-" in front of every name. Example:

Daisy.jpg --> L-Daisy.jpg
Lovely.jpg --> L-Lovely.jpg
Flamingo.jpg --> L-Flamingo.jpg

I have tried using the DOS rename (ren) command as follows:

ren *.jpg L-*.jpg

Instead of adding the "L-" to the front of it, it replaces the first 2 characters with it (i.e. L-isy.jpg, etc.).

If anyone knows of a way to accomplish this without manually editing evey file name, I would greatly appreciate them sharing it with me.

Thanks,

Alan
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Never mind, I just found a free Windows utility that does exactly what I needed it to do, so I'm all set.
 
Upvote 0

Forum statistics

Threads
1,225,399
Messages
6,184,752
Members
453,254
Latest member
topeb

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top