Forum Home
Press F1
 
Thread ID: 54726 2005-02-20 19:54:00 Converting filenames to lowercase Mike (15) Press F1
Post ID Timestamp Content User
326850 2005-02-20 19:54:00 In Windows 2000 is there a command prompt command to convert from uppercase to lowercase filenames (or a mixture of upper/lower to lower)? It needs to be command-line. Or is there something I can download to perform this easily.

Also it would be preferable to be able to batch or bulk convert, and take wildcards.

Thanks,
Mike.
Mike (15)
326851 2005-02-21 01:48:00 I doubt strongly if there's a command. Microsoft have traditionally thought that uppercase was good enough for you lot. ;)

It's not too difficult to do it in a scripting language or in a *NIX shell, , but it would be messy. Someone's probably done that.
Graham L (2)
326852 2005-02-21 05:54:00 I doubt strongly if there's a command. Microsoft have traditionally thought that uppercase was good enough for you lot. ;)

It's not too difficult to do it in a scripting language or in a *NIX shell, , but it would be messy. Someone's probably done that.Well that's the thing - we're moving a script that runs in a program on Unix to the NT/2000 version of the program, and the script calls a Unix script to convert all filenames to lowercase. So we need a Windows version of that Unix script to be called from the moved script...

Does that make sense? :D

Mike.
Mike (15)
326853 2005-02-21 08:18:00 Something like rename (www.1-4a.com) should do it gibler (49)
326854 2005-02-21 08:43:00 Lately I have been a big fan of creating .bat files with the help of excel. That should be able to automate it a *little*. I don't know of any specific tools for doing the job though. Write one :-P Jeremy (1197)
326855 2005-02-21 18:57:00 Something like rename (www.1-4a.com) should do itThanks gibler, but it doesn't appear to be able to be run from the command line?

Mike.
Mike (15)
326856 2005-02-21 19:00:00 Lately I have been a big fan of creating .bat files with the help of excel. That should be able to automate it a *little*. I don't know of any specific tools for doing the job though. Write one :-P I also do a lot of creating .bat files from excel, however the process needs to be completely automated, so adding that manual step wouldn't help much :) We will probably have to write something new to get it to work, but we were hoping someone might have already done it for us ;)

Mike.
Mike (15)
326857 2005-02-21 19:41:00 This looks like just the tool you could be after. zealsoftstudio.com


It can search & rename files in subfolders. Supports Explorer drag & drop, command line and Windows Explorer context menu.
Jeremy (1197)
326858 2005-02-22 01:05:00 This is a script which runs in Unix to make all the filenames lowercase. That's presumably to make all filenames consistent because Unix is case-sensitive.

Have you considered that you might not need to do this in Windows. DOS/Windows used to be "accept any case for filenames, but convert to uppercase in the directories". It seems to now store the filenames in mixed case (as entered), but doesn't it still accept any case? If so, ... ;)

Of course, this is at the OS level. The programme might still be fussy ... but usually it is the OS level which causes the problem, rather than the application.
Graham L (2)
326859 2005-02-22 03:58:00 (as entered), but doesn't it still accept any case? If so, ... www.pressf1.co.nz

Of course, this is at the OS level. The programme might still be fussy ... but usually it is the OS level which causes the problem, rather than the application.That's what I thought might be the case, but it hasn't been tried yet. The program that we're running the script on, however, was originally a Unix based program that has recently been ported to NT/2000, so it may not have picked up Windows' case handling in filenames. As we're still in the process of porting the script from Unix to Windows, we haven't yet been able to test whether it has or not.

Mike.
Mike (15)
1