The Graham Utilities for OS/2 - Version 2


[Warpspeed]

[Table of Contents] [Index] [Previous] [Next]


Case - Change the case of files

Summary

Case allows you easily change the case of both files and directories.

Icon

Command Line Format

Usage: Case {Switches} <File Spec> Drive Spec(s)

Switches

-a
All disks.
-d
Directories are included.
-f
First letter of each filename segment is upper case, rest are lower case.
-h
Hard disks only.
-l
Lower case file names.
-s
Subdirectories are included.
-u
Upper case file names.
-w
first letter of each Word is upper case, rest are lower case.

Note : If no drive specifications are entered the current drive is the only one displayed. As well, one of the -f, -l, -u or -w switches must be entered.

Description

Case allows you to easily change the case of the names of both files and directories on your disks. File systems such as HPFS retain the case, but are case insensitive. Thus changing the case of a file does not change the actual file referenced, ie. 'a' is the same as 'A'. UNIX type file systems are case sensitive, so the file 'a' is a totally different file to 'A'. Case should not be run on case sensitive file systems. Under the FAT file system, which is case insensitive, the filenames are always in upper case, so running Case on a FAT disk is useless.

-a All disks

Case will scan all logical disk drives defined by the system, starting at drive A:. The drives are scanned in order, starting at A:, then B: and so on.

-d Directories

Subdirectory names will be changed along with the files in them.

-f First letter of each filename segment is upper

The first letter of each filename segment, as separated by a period ('.') will be changed to upper case. The rest of the letters will be changed to lower case.

-h Hard disks only

Case will scan all logical disk drives defined by the system, starting at drive C:. The drives are scanned in order, starting at C:, then D: and so on.

-l Lower case file names

Every letter of the filename will be changed to lower case.

-s Subdirectories

Case will include subdirectories as part of its search of the specified disk drives. If a subdirectory name is included as part of the file specification, then the search will include that subdirectory and all subdirectories below it. If no subdirectory is given as part of the file specification, then the current directory and all below it are included in the search.

Note : The directories themselves will not be changed with this switch - only the files in the directories. See also the -d switch.

-u Upper case file names

Every letter of the filename will be changed to upper case.

-w first letter of each Word is upper

This switch is similar to the -f switch. However, each filename segment is now separated by a period or a space.

Examples

Case C:\ /s -l
All files on C: will be changed to lower case.
Case C:\ /sud
Case will change all files and directories to upper case.
Case "H:\this is a very long file.name" -f
Case will change "H:\this is a very long file.name" to "H:\Ths is a very long file.Name"
Case "H:\this is a very long file.name" -w
Case will change "H:\this is a very long file.name" to "H:\This Is A Very Long File.Name"