Question:
How to replace uppercase letters with lower case letters on many files?
Craig
2009-05-06 10:38:45 UTC
I have about 140 files (jpeg's). These files have names such as, "Main-Pic1.jpg". What i need to do is rename these files so that they have the same name but all in lower case such as "main-pic1.jpg". Does anyone know of any programs/command lines to do this on a mass scale?

This is for a website which only recognises and works with lower case filenames.

Im on a windows platform, the command can be done on a windows based server however. Any clever people got any suggestions? I really don't want to do this by hand...

Thanks in advance
Five answers:
G1B
2009-05-06 11:00:41 UTC
I could write you a program in C# or C++ to do that in about 5 minutes.



Email me and let me know if you still havent found anything to do it.
Here there and everywhere
2009-05-08 20:51:55 UTC
Got to start/run and type 'cmd' in the 'run' dialogue box. Navigate to the folder where the jpegs are, using 'cd'. When you get to that folder that has the files in that you want to rename, type 'dir >> runme.bat', press enter, followed by 'exit' to exit the dos box.



Assuming that you have microsoft excel, import the file 'runme.bat', that you just created. Edit it to remove everything apart from the file names and so that all of the file names are in column B. Now copy and paste column B into column C. Highlight column C and using 'edit/replace' change all of the uppercase characters that you want to change. Type 'ren' into the first row in column A, then copy and paste the 'ren' into all of the remaining rows.



You should now have a 'excel' file with lines that look like this:



ren Upper,jpg upper.jpg



Save the file and exit. Open up a windows explorer and select the 'runme.bat' file, then just press 'enter'.



All of your files should now be renamed. Assuming that you typed everything correctly, all of the files should now be renamed as you require.
Andrew L
2009-05-06 17:55:05 UTC
Here's a suggestion which may or may not fit the bill. You will end up with lower-case names in a sequence.



Click File->Select all. While all files are selected, right-click on your first file and select Rename. Now type a name in the following format:-



abc (1).jpg

(where abc is your chosen text).



Hit Enter, and Windows renames all your files in the sequence abc (1).jpg, abc (2).jpg etc.
Rocket
2009-05-06 17:46:04 UTC
Use a Batch Renamer like RenameMaster

http://www.joejoesoft.com/cms/showpage.php?cid=108
2009-05-06 17:42:00 UTC
http://www.bulkrenameutility.co.uk/Main_Intro.php

That's all I can think of.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...