The Graham Utilities for OS/2 - Version 2


[Warpspeed]

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


FF - File Find

Summary

FF locates all files matching the given file specification on all specified disk drives.

Icon

Command Line Format

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

Switches

-a
All disks.
-d
Delete found files.
-f
Force file names to lower case.
-h
Hard disks only.

Note : If no file specification is entered, all files are listed. If drive specifications are entered then those drives are searched. If no drive specifications are entered then the current drive is searched.

Description

FF will recursively search your disk drives for specified files. By default, it will start searching from your root directory. Although, if specified, FF can begin the search from a particular subdirectory.

-a All disks

FF 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 Delete found files

FF will delete any files found which match the given file specification.

WARNING: You are NOT prompted for confirmation of the deletion of the files.

-f Force file names to lower case

On FAT partitions, file names are always displayed in lower case. HPFS partitions retain their case, but the file system does not differentiate between the case of file names, and they are displayed as they were entered. The -f option forces all displayed file names, across all file system types, to be displayed in lower case.

-h Hard disks only

FF 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.

Examples

FF *.pas c: d: e:
Look for any files matching *.pas on drives C:, D: and E:
FF *.BAK -d
Delete all .BAK files on the current drive.
FF *.TMP -hd
Delete all .TMP files on all hard disks.
FF *.WKS E:
Find all .WKS files on the current disk drive as well as drive E:.
FF E:*.WKS
Find all .WKS files on drive E: only.