home *** CD-ROM | disk | FTP | other *** search
- FINDFILE
- --------
- 1. Description
- -----------
- FindFile is an OPL program that is used to search through a directory
- structure for files matching a particular pattern in their name.
-
- The main dialog has the following fields:-
-
- File Mask: this should contain a valid file name. Wild cards
- are permitted and the name may or may not include
- a drive and/or path specifier. The current drive
- and path will be used as defaults, if necessary.
- Invalid paths and file names will be ignored.
- Remote paths are acceptable although a word of
- caution here: this version of the program reports
- an error when trying to obtain the file
- properties for DOS directory entries such as
- E:\MODELS\. and E:\MODELS\.. i.e. the current
- directory and parent directory entries but this
- doesn't stop the program from nevertheless
- producing the required report.
-
- Show Properties: (Yes/No) If set to yes then the file size, last
- modification date and time, and properties (e.g.
- Modified, Hidden etc) will be included in the
- output. This is very useful for identifying which
- files have been backed up onto a pc and so could
- be erased when short of space.
-
- Output To: (Display/Printer) Chooses where the output is to
- go (but see below). If Display is chosen and Show
- Properties is Yes then two lines per file are
- displayed otherwise one line per file is
- displayed. In either case the output pauses at
- the bottom of every screen. Pressing Esc quits
- back to the main dialog panel whilst any other
- key continues.
-
- Print Device: (Default: PAR:A) Specifies the destination for
- the printer output if the Output To: option is
- set to printer. Hence the output can be directed
- to a file, a remote printer (REM::PRN seems to
- work ok, for example).
-
- Pressing Esc from the main dialog panel terminates the program.
-
- That's it folks - have fun. I will probably extend the program to sort
- the results but since I've included all of the code you can modify it
- yourself if you wish.
-
- By the way: you will need to TRANSLATE it first - if you've never used
- OPL before then put the file FINDFILE.OPL in a directory called \OPL and
- it will appear in the system window under the OPL icon. Open the file
- and press Psion-T.
-
- Cheers,
- Steve Mills. 100014,1312
-
-