home *** CD-ROM | disk | FTP | other *** search
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
- Overview
- Overview
- Overview
- ________
- ________
- ________
-
- The program DHRFF is an OS/2 command line file and directory list
- and search program. In mode 0, the output matches the DIR command
- output. With the proper System Setup Country Settings, the output
- will match the DIR command exactly. Some of the DIR options have
- been extended and corrected. Additional options are provided. In
- mode 1, the output matches the RexxUtil SysFileTree output. Mode
- 2 is used for finding files and combines mode 1 with the /s
- option. Does not operate is DOS sessions.
-
-
- Mode 0 Operation
- Mode 0 Operation
- Mode 0 Operation
- ________________
- ________________
- ________________
-
- The DHRFF program in mode 0 matches the output of the DIR com-
- mand, corrects some DIR problems, and for large displays is
- faster than DIR.
-
- DIR functions supported -
-
- All including the undocumented (in OS/2) 'set DIRCMD='
- Most error messages extracted from the same system message file
- used by DIR
-
- DIR improvements -
-
- Sort options work with large directories (max 20,000 files, tested
- on a subdirectory with over 10,000 files - DIR just closes the
- session)
- Option /a includes option to show files that have EAs
- Option /r works in OS/2 command environment showing long names for
- FAT or HPFS files
- Option to show access date-time and creation date-time along with
- the standard write date-time for HPFS files
- Option to show file attributes (system, hidden, read only, etc.)
- Option to show EA names
- Option to select files by date-time range
- Option to create file
- Option to turn off console display
- Complies with code page and system setup country settings for date
- and time formats
- Eliminates trailing spaces on output with the /w option
-
-
- Mode 1 Operation
- Mode 1 Operation
- Mode 1 Operation
- ________________
- ________________
- ________________
-
- The DHRFF program in mode 1 matches the output format of the
- RexxUtil SysFileTree, extends options, and corrects some SysFile-
- Tree problems.
-
- Corrects time format between midnight and 1 AM
- (SysFileTree formats time as 00:04a instead of 12:04a)
-
-
- 1
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
- Complies with code page and system setup country settings for date
- and time formats
- Finds all files
- (SysFileTree uses 32 bit functions which do not find
- subdirectories with leading spaces at this time)
- Allows complete specification of attributes with /a options just
- like DIR - default is to show files including directories, use -
- /af to show just files
- /ad to show just directories
- Supports sorting within subdirectories like DIR
-
-
- Command Syntax
- Command Syntax
- Command Syntax
- ______________
- ______________
- ______________
-
- DHRFF [Options] [Disk:][Starting Directory\][File Selection] [...]
-
- [Options] - Optional parameters to control output. See below.
- Options may appear anywhere on the command line, before, after,
- or before and after the file information.
- [Disk] - Optional Drive Letter. Specify as d...d: where d is
- one or more drive letters - Or ?: to search all drives
- starting with the C drive.
- [Starting Directory] - Optional fully qualified directory where
- search is to start.
- [File Selection] - Optional file selection criterion using
- standard DOS-OS/2 format including * and ?.
- [...] - The [Disk:][Starting Directory\][File Selection] combination
- may be repeated
-
-
- Command Line Options
- Command Line Options
- Command Line Options
- ____________________
- ____________________
- ____________________
-
- /a:... - Select All Files Unless Followed By -
- a - Select Only Archived (Modified) Files
- -a - Select No Archived (Modified) Files
- d - Select Only Directories
- -d - Select No Directories
- e - Select Only Files or Directories with Extended Attributes **
- -e - Select No Files or Directories with Extended Attributes **
- h - Select Only Hidden Files
- -h - Select No Hidden Files
- r - Select Only Read Only Files
- -r - Select No Read Only Files
- s - Select Only System Files
- -s - Select No System Files
- /b - Display files without heading and summary
- /f - Display Fully Qualified File Names Only
- /p - Pause on full screen
- /s - Process Subdirectories
- /l - Display file names in lower case
- /n - Display files on FAT disks in HPFS format
- /o... - Sort display by specified fields
-
-
- 2
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
- n - File name and type with A first
- -n - File name and type with A last
- e - File type with A first
- -e - File type with A last
- d - Date and Time - most recent last
- -d - Date and Time - most recent first
- s - Size - smallest first
- -s - Size - largest first
- g - Directories first
- -g - Directories last
- /r - Display long file names
- /w - Display files in multiple columns
-
- Those items above marked with ** are extensions and the following
- are extensions -
-
- /d - Select file by date (see below)
- - /d[,=,g,l]YYMMDDHHMM[-YYMMDDHHMM]
- /k - Create DAT File with Directory and File Information in
- RexxUtil format
- /e - Show EA Names
- /t - Show Attribute Information
- /j - Display Access Date and Creation Date for files on HPFS disks
- /v - Suppress Video Display
- /0 - Mode 0 Selection, OS/2 DIR like display (default)
- /1 - Mode 1 Selection, RexxUtil SysFileTree like display
- /2 - Mode 2 Selection, Mode 1 plus /s for file name searching
- /? - Display List of Options
-
-
- Date Selection
- Date Selection
- Date Selection
- ______________
- ______________
- ______________
-
- The /d option is used to select files based on write date-time. A
- single date-time may be entered in the format YYMMDDHHMM (year-
- month-day-hour-minute) along with an '=', 'G', or 'L' to indicate
- comparison type. The '=' indicates that all selected files must
- match the entered date-time. The 'G' indicates that all selected
- files must have a date-time that is greater than the entered
- date-time. The 'L' indicates that all selected files must have a
- date-time that is less than the entered date-time. The default is
- '=' and does not have to be entered. The complete date-time also
- does not have to be entered. Examples -
-
- /d910101 or /d=910101 - select files with date of 01/01/91
- /dg910101 - select files with date greater than 01/01/91
- /dl910101 - select files with date less than 01/01/91
- /d9101 - select file with the year and month equal to 01/??/91
- /d91 - select file with the year equal to ??/??/91
- /d9101010101 - select files with date of 01/01/91 and time of 01:01a
-
- The /d option also supports a date range /d9101010101-9104010101.
- The date range is inclusive. Examples -
-
-
- 3
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
-
- /d91-/92 - select files with year >= 91 and <= 92
- /d9108-/92 - select files with date >= 08/??/91 and <= 92
- /d920804-/920903 - select files with date >= 08/04/92 and <= 09/03/92
-
- Multiple dates may be entered. Any file date that matches any
- date entered will be selected. Example -
-
- /d920904 /d920901 - select file with date 09/04/92 or 09/01/92
-
-
- Set DIRCMD
- Set DIRCMD
- Set DIRCMD
- __________
- __________
- __________
-
- The 'Set DIRCMD=' environment variable is supported. Values set
- in the environment are processed before command line options.
- Command line options may override environment options. The DHRFF
- program also looks for the environment variable XDIRCMD. It will
- be used in place of the DIRCMD values if found. Example -
-
- set DIRCMD=/n - DIR or DHRFF will always show files in HPFS
- format even on FAT disks.
- set XDIRCMD=/os - DHRFF will sort files in size sequence before
- display. The DIRCMD setting will be ignored.
-
-
- Date and Time Display
- Date and Time Display
- Date and Time Display
- _____________________
- _____________________
- _____________________
-
- The display of dates and times by DHRFF are controlled by the
- values specified in the codepage selection in CONFIG.SYS and the
- customized values set in the Country Settings panel which is
- found in the System Setup folder. Dates may appear in the format
- Month-Day-Year, Day-Month-Year, or Year-Month-Day. The separator
- may also be customized (-, /, etc.). Times may appear in 12 hour
- or 24 hour format. The 12 hour format may additionally have AM or
- PM appended (upper or lower case). The hour - minute separator
- may also be customized.
-
-
- Data File Format
- Data File Format
- Data File Format
- ________________
- ________________
- ________________
-
- The /k option will create a file in RexxUtil SysFileTree format.
- The file name will match the program name (DHRFF unless renamed,
- and a max of 8 characters) with a file type of DAT. Each line
- contains the date (MM/DD/YY), time (HH:MMx), file size, file
- attributes (ADHRS), and fully qualified file name. The format of
- the date and time are not adjustable. Example data -
-
- 8/14/92 2:37p 0 -D--- G:\OS2PGMS\IBMC\...\X-X-X-X
- 9/07/92 4:18p 11135 ----- G:\OS2PGMS\IBMC\...\DECPARM.C
- 8/31/92 2:47p 57477 ----- G:\OS2PGMS\IBMC\...\DHRCMP.EXE
-
- In a REXX file, the RXQUEUE command may be used to send the
-
-
- 4
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
- output of the program to the REXX stack for processing -
-
- DHRFF /2 \*.EXE | RXQUEUE
- dirstem.0 = queued()
- do dir_ctr = 1 to dirstem.0
- pull dirstem.dir_ctr
- end
-
-
- Limitations
- Limitations
- Limitations
- ___________
- ___________
- ___________
-
- DHRFF is not perfect. Although this program could replace the DIR
- command completely, I would not recommend it. For small displays
- the program load time is longer than the DIR display time. For
- small sort requests, DIR is faster as it appears to insert each
- new entry into a linked list according to sort sequence rather
- than load and sort as is done in DHRFF.
-
-
- Copyright and Disclaimer
- Copyright and Disclaimer
- Copyright and Disclaimer
- ________________________
- ________________________
- ________________________
-
- The program DHRFF.EXE is placed in the public domain. The program
- and this documentation are
- Copyright (c) 1992 by Dennis H. Rosenthal,
- the author. You may copy and distribute the program and
- documentation without restriction.
-
- The program DHRFF.EXE is distributed as is, with no guarantee
- that it will work correctly in all situations. In no event will
- the Author be liable for any damages whatsoever, including,
- without limitation, loss of profit, loss of information, or
- special, incidental, or consequential damages or other similar
- claims, arising out of the use of or inability to use this
- program, even if the Author has been advised of the possibility
- of such damages, or for any claim by any other party.
-
- The DHRFF program is written entirely in C and compiled with the
- IBM C Set/2 compiler. The source is available for a fee. I may be
- contacted via CompuServe ID 75176,3003 or via mail -
-
- Dennis H. Rosenthal
- 417 Hialeah Drive
- Cherry Hill, NJ 08002
-
-
-
-
-
-
-
-
-
-
-
- 5
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
- Examples
- Examples
- Examples
- ________
- ________
- ________
-
-
- DHRFF dhrff.exe
- DHRFF dhrff.exe
- DHRFF dhrff.exe
-
- Displays the dhrff.exe in the current directory exactly like
- the DIR command -
-
- The volume label in drive G is FDISKG.
- The Volume Serial Number is A4BB:7814
- Directory of G:\OS2PGMS\IBMC\WKFRAME\DHRFF
-
- DHRFF EXE 68096 9-14-92 3:37p
- 1 file(s) 68096 bytes used
- 35749888 bytes free
-
-
- DHRFF /s /ae /n \
- DHRFF /s /ae /n \
- DHRFF /s /ae /n \
-
- Displays all files on the current disk that have extended
- attributes. Display is in HPFS format to show EA size -
-
- The volume label in drive D is OS2.
- The Volume Serial Number is A561:C014
-
- Directory of D:\
-
- 7-01-92 9:21p <DIR> 296 NOWHERE
- 7-01-92 9:21p <DIR> 1116 OS!2_2.0_D
- 3-30-92 12:00p 716044 49 OS2KRNL
- 7-04-92 11:56p 94 402 DHRRU100.CMD
- 4 file(s) 716138 bytes used
-
- Directory of D:\OS2
-
- 3-30-92 12:00p 5655 53 ANSI.EXE
- 3-30-92 12:00p 36765 53 ATTRIB.EXE
- 3-30-92 12:00p 83433 53 BACKUP.EXE
- ...
-
- Directory of D:\OS!2_2.0_D\PGM_TOOL\TOOLKIT\SAMPLE_P
-
- 7-03-92 10:58a 416 3755 WP_CAR_S
- 1 file(s) 416 bytes used
-
- Total files listed:
- 299 file(s) 13680450 bytes used
- 12304384 bytes free
-
-
-
-
-
-
- 6
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
- DHRFF /t /a
- DHRFF /t /a
- DHRFF /t /a
-
- Displays all files in current directory in DIR format along
- with attribute information. The attribute information shows a
- letter or a dash indicating the status of the attribute for the
- file - ADHRS indicates Archive, Directory, Hidden, Read Only, and
- System -
-
- The volume label in drive D is OS2.
- The Volume Serial Number is A561:C014
- Directory of D:\
-
- NOWHERE <DIR> 7-01-92 9:21p -D---
- OS2 <DIR> 7-01-92 8:47p -D---
- OS!2_2 0_D <DIR> 7-01-92 9:21p -D---
- PSFONTS <DIR> 7-01-92 8:57p -D---
- SPOOL <DIR> 7-01-92 9:20p -D---
- OS2BOOT 1099 7-01-92 8:55p --HRS
- OS2KRNL 716044 3-30-92 12:00p --HRS
- OS2LDR 32256 3-30-92 12:00p --HRS
- EA DATA SF 917504 7-01-92 8:47p A-HRS
- WP ROOT SF 264 9-15-92 9:40a A-H-S
- ...
- 26 file(s) 1784977 bytes used
- 12304384 bytes free
-
-
- DHRFF /e /s \*.cmd
- DHRFF /e /s \*.cmd
- DHRFF /e /s \*.cmd
-
- Displays all CMD files on the current disk along with ex-
- tended attribute information. Names appear on a separate line
- which includes EA value length and length of name -
-
- The volume label in drive D is OS2.
- The Volume Serial Number is A561:C014
-
- Directory of D:\
-
- ATTR1 CMD 123 7-07-92 10:18a
- ATTR2 CMD 145 7-07-92 10:18a
- DHRRU100 CMD 94 7-04-92 11:56p
- EA Value Length 68, Name - (16)REXX.METACONTROL
- EA Value Length 91, Name - (16)REXX.LITERALPOOL
- EA Value Length 53, Name - (16)REXX.VARIABLEBUF
- EA Value Length 102, Name - (16)REXX.TOKENSIMAGE
- 3 file(s) 362 bytes used
- ...
- Total files listed:
- 54 file(s) 359924 bytes used
- 12304384 bytes free
-
-
-
-
- 7
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
-
- DHRFF /1 /s /ae /n \ or DHRFF /2 /ae /n \
- DHRFF /1 /s /ae /n \ or DHRFF /2 /ae /n \
- DHRFF /1 /s /ae /n \ or DHRFF /2 /ae /n \
-
- Displays all files on the current disk that have extended
- attributes in RexxUtil SysFileTree format -
-
- 7/01/92 9:21p 0 -D--- 296 D:\NOWHERE
- 7/01/92 9:21p 0 -D--- 1116 D:\OS!2_2.0_D
- 3/30/92 12:00p 716044 --HRS 49 D:\OS2KRNL
- 7/04/92 11:56p 94 ----- 402 D:\DHRRU100.CMD
- 3/30/92 12:00p 5655 ----- 53 D:\OS2\ANSI.EXE
- 3/30/92 12:00p 36765 ----- 53 D:\OS2\ATTRIB.EXE
- 3/30/92 12:00p 83433 ----- 53 D:\OS2\BACKUP.EXE
- 3/30/92 12:00p 40951 ----- 53 D:\OS2\DISKCOMP.COM
- 3/30/92 12:00p 45108 ----- 53 D:\OS2\DISKCOPY.COM
- 3/30/92 12:00p 71442 ----- 3542 D:\OS2\E.EXE
- ...
-
-
- DHRFF /2 /j \*.exe
- DHRFF /2 /j \*.exe
- DHRFF /2 /j \*.exe
-
- Displays all EXE files on the current disk along with the
- last access date and creation date (HPFS disks only) in RexxUtil
- format -
-
- 3/30/92 12:00p 5655 ----- ( 8/11/92 10:49a) ( 7/11/92 11:41a)
- I:\OS2\ANSI.EXE
- 3/30/92 12:00p 36765 ----- ( 8/11/92 10:49a) ( 7/11/92 12:06p)
- I:\OS2\ATTRIB.EXE
- ...
- 3/30/92 12:00p 14436 ----- ( 8/11/92 10:53a) ( 7/11/92 11:42a)
- I:\OS2\SYSTEM\HARDERR.EXE
- 3/30/92 12:00p 15360 ----- ( 8/11/92 10:53a) ( 7/11/92 11:54a)
- I:\OS2\SYSTEM\LOGDAEM.EXE
-
-
- DHRFF /2 ?:\CD*.SYS
- DHRFF /2 ?:\CD*.SYS
- DHRFF /2 ?:\CD*.SYS
-
- Displays all files that begin with CD and have a file type
- of SYS. The ?: will search all hard disks -
-
- 3/30/92 12:00p 21556 ----- D:\OS2\CDROM.SYS
- 3/30/92 12:00p 21556 ----- I:\OS2\CDROM.SYS
-
-
-
-
-
-
-
-
-
-
-
- 8
-
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- DHRFF Version 1.00 Documentation
- Copyright (c) 1992 by Dennis H. Rosenthal
- 09/92
-
-
-
- OS/2 functions called by DHRFF
- OS/2 functions called by DHRFF
- OS/2 functions called by DHRFF
- ______________________________
- ______________________________
- ______________________________
-
- Dos16FindFirst2, Dos16FindNext, Dos16FindClose
- The 32 bit DosFindFirst, DosFindNext functions do not
- find subdirectories with leading spaces. The 16 bit
- functions work properly.
- DosAllocMem
- DosEnumAttribute
- DosFreeMem
- DosGetDateTime
- DosGetMessage
- DosQueryCtryInfo
- DosQueryCurrentDisk
- DosQueryFSAttach
- DosQueryFSInfo
- DosQueryPathInfo
- DosQuerySysInfo
- DosScanEnv
- KbdCharIn
- KbdFlushBuffer
- KbdGetStatus
- KbdSetStatus
- PrfQueryProfileData
- VioGetMode
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 9
-
-