How do I get all my directory and file names to be the same case?

K

Kevin

I have directories and files which have mixed cases. For instance, I have a
"PERSONAL PROJECTS" directory with a file in it named "Spreadsheet.xls" and
another file named "ALTERNATE SHEETS.xls". I have another directory
"Invoices" with two files, "Paper.xls" and "PAMPHLETS.xls".

I have quite a few of these mixed case directories and files to deal with.
How can I get the case of the names to be either ALL upper case or ALL lower
case?

In other words I want this:
C:\Personal Projects\Spreadsheet.xls

Not:
C:\PERSONAL PROJECTS\Spreadsheet.xls

or:
C\Invoices\PAMPHLETS.xls

Thanks for any help. Yes, I know I could do all this by hand, one directory
and file name at a time, but there are a bunch of them!
 
P

Phil Weldon

'Kevin wrote:
| I have directories and files which have mixed cases. For instance, I have
a
| "PERSONAL PROJECTS" directory with a file in it named "Spreadsheet.xls"
and
| another file named "ALTERNATE SHEETS.xls". I have another directory
| "Invoices" with two files, "Paper.xls" and "PAMPHLETS.xls".
|
| I have quite a few of these mixed case directories and files to deal with.
| How can I get the case of the names to be either ALL upper case or ALL
lower
_____

Why? The case of file and folder names is only of aesthetic consequence.
The file names 'ThIs Is OnE.txt' and 'this is one.txt' and 'THIS IS ONE.txt'
are the same.
The fully qualified filenames C:\Personal Projects\Spreadsheet.xls and
C:\PERSONAL PROJECTS\Spreadsheet.xls. Note that NONE of these folder or
file names are 'all lower case'.

I guess you could rename the files and folders, changing just the case - but
why?

Phil Weldon

|I have directories and files which have mixed cases. For instance, I have
a
| "PERSONAL PROJECTS" directory with a file in it named "Spreadsheet.xls"
and
| another file named "ALTERNATE SHEETS.xls". I have another directory
| "Invoices" with two files, "Paper.xls" and "PAMPHLETS.xls".
|
| I have quite a few of these mixed case directories and files to deal with.
| How can I get the case of the names to be either ALL upper case or ALL
lower
| case?
|
| In other words I want this:
| C:\Personal Projects\Spreadsheet.xls
|
| Not:
| C:\PERSONAL PROJECTS\Spreadsheet.xls
|
| or:
| C\Invoices\PAMPHLETS.xls
|
| Thanks for any help. Yes, I know I could do all this by hand, one
directory
| and file name at a time, but there are a bunch of them!
|
|
 
K

Kevin

Wesley Vogel said:
How do I convert a file name to lowercase 8379
http://www.jsiinc.com/SUBQ/tip8300/rh8379.htm

How do I convert a file name to lowercase 0568
http://www.jsiinc.com/SUBB/tip0500/rh0568.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In


Thanks for the information, Wes! Great resource for batch files. The links
you included prompted me to look for, and find, the following:

http://www.ais.org/~gary/gfiles.html

I found a program called "2Lower" and it works like a charm.

Thanks again.
 
W

Wesley Vogel

Cool, Kevin. Keep having fun.

In future just pay attention to what case you use when creating a folder or
file. Xp DoEs nOt Care WHAT tHe CaSE is. ;-)

I cheat. When I have text that is mixed or lowercase and I need it for
autoCAD drawings, I use MS Word or autoCAD's Multiline Text Editor to change
the case. We use uppercase in our drawings.

Change Case MS Word

1. Select the text you want to change.
2. On the Format menu, click Change Case.
3. Click the capitalization option you want.
---

Command Name Shortcut Keys
Change Case SHIFT+F3

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

guestuser

Wesley Vogel said:
Cool, Kevin. Keep having fun.

In future just pay attention to what case you use when creating a folder
or
file. Xp DoEs nOt Care WHAT tHe CaSE is. ;-)

I cheat. When I have text that is mixed or lowercase and I need it for
autoCAD drawings, I use MS Word or autoCAD's Multiline Text Editor to
change
the case. We use uppercase in our drawings.

Change Case MS Word

1. Select the text you want to change.
2. On the Format menu, click Change Case.
3. Click the capitalization option you want.
---

Command Name Shortcut Keys
Change Case SHIFT+F3

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In

Once again, thanks for your help, Wes! (I'm on a friends computer -- this is
Kevin) I'm not sure how my directories started getting the case of the
names mixed, but I think it was a couple of reformat/installations ago.
Somehow, directory names got all uppercase. I just haven't felt like doing
anything about it until now.
 
M

Manny Borges

2lower. Probably a fairly basic C based program that uses the standard C
function that is (oddly enough) called tolower. There is also a sister
function that is called ........(drum roll)..... toupper. I bet you can
guess what it does :/ .

--
Manny Borges
MCSE NT4-2003 (+ Security)
MCT, Certified Cheese Master

There are 10 kinds of people in the world. Those who do understand binary
and those who don't.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top