Board logo

File name case changer software?
Jasper - 20/2/06 at 03:25 PM

I need a bit of software to batch convert file names and extensions from Upper to Lower case.

Any ideas?


flak monkey - 20/2/06 at 03:53 PM

Not tried it, but will this do what you want?

http://www.replsoft.com/casecnv.html

David


Jasper - 20/2/06 at 04:12 PM

Had a look, seems complicated and I can't get it to do want I want - thanks for trying though


Tangerine Scream - 20/2/06 at 05:35 PM

I've tried this a couple of times...

http://www.finebytes.com/mfr/

HTH
Steve


Surrey Dave - 20/2/06 at 06:19 PM

FREE demo her you could try..........


www.123renamer.com

I have used it before...........it worked for me.


Gav - 20/2/06 at 06:56 PM

What exactly do you want it todo?

im sure i could probably knock something together for you if its not too complicated.


Jasper - 21/2/06 at 10:45 AM

I'll try those, thanks chaps.

All I want to do is put in lower case the file names of images I then put on my web site, as the web site only likes lower case names, and many of my suppliers use uppercase names for the images.

I also need it to change the case of the file extension, in this case .JPG to .jpg when necessary for the same reason.


chockymonster - 21/2/06 at 02:22 PM

Very easy to do in vbscript.

create a new text file.
Paste the following text into it.

code:

set fso = createobject("scripting.filesystemobject"
Function GetPath
path = WScript.ScriptFullName
GetPath = Left(path, InstrRev(path, "")
End Function
path2 = GetPath
folder = Left(path2, (Len(path2)-1))
set folder = fso.GetFolder(folder)
set files = folder.Files
s = ""
vCount = 0
for each file in files
vCount = vCount + 1
ReDim Preserve arFiles(vCount)
Set arFiles(vCount) = file
tempfilename = LCase(arFiles(vCount).name)
file.name = "temp" & vCount
file.name = tempfilename
next



save the file as casechange.vbs

copy the file into the folder that has the files in it you want to change.
open a command prompt window and change to that folder.
type
code:
cscript casechange.vbs


If you want me to explain what it does then no problems, otherwise it will step through every file in the current folder changing every upper case letter to lower case without you needing to do anything!


Gav - 21/2/06 at 02:25 PM

Here's something i knocked up while i was having my lunch.

Should be fairly self explanitory.


Surrey Dave - 21/2/06 at 10:58 PM

Looks good but did not work for me..........couldn't click the OK after selecting file or folder....

[Edited on 21/2/06 by Surrey Dave]


Gav - 22/2/06 at 01:31 PM

Would that be the program i knocked together?, as ive just downloaded it and it seems to work ok for me


Jasper - 23/2/06 at 06:52 PM

Don't think I'm not appreciative I'm off work for a couple of days - I'll give it a go tomorrow ....

Cheers