home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / fyf120.zip / FYF.INI < prev    next >
INI File  |  1996-03-21  |  6KB  |  144 lines

  1. ;                  FindYourFile INI file.
  2. ;
  3. ;   This files follows the WINDOWS convention of INI files.  Any lines
  4. ;   containing a semicolon ; in the first position are treated as
  5. ;   comment lines.  Sections are enclosed in brackets, and entries are
  6. ;   in the format entry-name=value.
  7. ;
  8. ;   If you specify an entry in the INI file and the same parameter
  9. ;   on the command line the command line entry will take precedence.
  10. ;
  11. ;   THIS INI FILE MUST BE LOCATED IN THE SAME DIRECTORY WHERE THE
  12. ;   FYF.EXE IS LOCATED OR FYF WILL NOT FIND IT!!!!!!!!!!!!!!
  13. ;
  14. ;
  15. [display-format]
  16. ;output-line
  17. ;   This defines the format of the line displayed for all found files.
  18. ;   Eight different variable names may be used.
  19. ;
  20. ;   $S = size of the file.
  21. ;   $D = date of the file.
  22. ;   $T = time of the file.
  23. ;   $A = attributes of the file.
  24. ;   $P = directory where the file was found.
  25. ;   $F = full name of the file found.  E.G.  TEST.DAT
  26. ;   $N = name portion of the file found.
  27. ;   $X = extention portion of the file found.
  28. ;
  29. ;   Spaces in the format string results in spaces on the screen.
  30. ;
  31. ;   The $P,$F,$N and $X variables may optionally have a field size
  32. ;   specified.  If a field size is specified the data displayed will be
  33. ;   truncated if the field size is smaller than the data to display, or
  34. ;   padded with blanks on the right to expand the data.
  35. ;   If no size is specified the entire data string is displayed on the
  36. ;   screen.
  37. ;
  38. ;   Any text that appears after the = will also be displayed on the screen
  39. ;   or copied to redirected output.  Using this facility allow you to
  40. ;   dynamically create OS/2 CMD files.
  41. ;
  42. ;   The output line format may also be entered on the command line using
  43. ;   the /OF parameter.  Just be sure to enclose the complete /OF parameter
  44. ;   in quotes.
  45. ;       E.G.  FYF *.bat "/OFCOPY $P$F E:\TEMP"
  46. ;
  47. ;   EXAMPLE:
  48. ;       $N10 $X3 = display filename for first ten positions, a blank and
  49. ;                  the file extension for three positions.
  50. ;
  51. ;   The default is output-line=$s $d $t $a $p $f
  52. ;
  53. ;
  54. ;REMOVE THE SEMICOLON ON THE NEXT LINE TO SPECIFY OUTPUT-LINE FORMAT.
  55. ;OUTPUT-LINE=$S $D $N8 $X3 $P
  56. ;
  57. ;
  58. [user-exits]
  59. ;   FYF Allows you to specify a program or a command file that will be
  60. ;   executed prior to FYF searching for files and after the search is
  61. ;   complete.  The program or command file must be:
  62. ;   1)  In the current directory.
  63. ;   2)  In a directory listed in the path.
  64. ;   3)  or fully qualified, including drive, and directory.
  65. ;
  66. ;   If FYF can not locate the CMD or program to execute - or -
  67. ;   the CMD or program ends with a non zero return code FYF will
  68. ;   issue a message to the console.
  69. ;
  70. ;   The PRE and POST user exits can be specified on the command line
  71. ;   using the /PRE and /POST command line options.  Be sure to
  72. ;   enclose the /PRE and /POST options in quotes.
  73. ;   E.G.  FFOS2 e:\*.bat "/predir e:\temp" "/postdir e:\os2"
  74. ;
  75. ;
  76. ;REMOVE THE SEMICOLONS ON THE NEXT 2 LINES TO USE PRE AND POST EXITS.
  77. ;pre-cmd=dir e:\temp
  78. ;post-cmd=dir e:\up
  79. ;
  80. ;
  81. [defaults]
  82. ;   This section allows the user to setup some user defaults.
  83. ;   The default-drives keyword indicates which drives to search for files
  84. ;   on if no drives are specified along with the file specification(s) to
  85. ;   search for.  If default-drives is not specified all locally attached
  86. ;   drives will be searched.
  87. ;   EXAMPLE:
  88. ;       If default-drives=cd is specified and you enter the following command:
  89. ;           FYF c:\*.exe  *.dat
  90. ;
  91. ;       Then the C drive will be searched for all .EXE files and
  92. ;       the C and D drive will be searched for all .DAT files.
  93. ;
  94. ;   The network-drives and cd-drives keywords take a 0 or a 1 indicating
  95. ;   1 for YES and 0 for NO.  These allow the user to setup searching on
  96. ;   network drives and cd-drives without having to use the /NET and /CD
  97. ;   command line parameters.  If network-drives is set to a 1 and the
  98. ;   /NET command line switch is specified network drive searching is
  99. ;   de-activated.  The cd-drives keyword and /CD command line switch
  100. ;   function the same way.
  101. ;
  102. ;   NOTE: When FYF builds the list of drives to search it is smart enough
  103. ;         to remove duplicate drive letters before performing the search.
  104. ;
  105. ;   The compressed-search keyword tells FYF to search for files inside
  106. ;   compressed files.  If this options is activated in the FYF.INI file
  107. ;   it can be temporarily de-activated from the command line by using
  108. ;   the /IC command line switch.
  109. ;
  110. ;   The output-file keyword tells FYF to put the results of the search
  111. ;   into an output file instead of displaying the results on the screen.
  112. ;   This is the same as using the /FILE command line option.  If you
  113. ;   specify the output-file keyword in the FYF.INI file and the /FILE
  114. ;   parameter on the command line output will be directed to the screen.
  115. ;   If you wish to redirect output to another filename and you have the
  116. ;   output-file keyword in the FYF.INI file code the command line as
  117. ;   follows:
  118. ;       FYF *.c /FILE "/FILEe:\new.out"
  119. ;
  120. ;   The first /FILE parm turns off writing to a file, the second /FILE
  121. ;   parm turns on writing to a file using a new name.
  122. ;
  123. ;   You can also do the following:
  124. ;       FYF *.c /FILE > e:\new.out
  125. ;
  126. ;   THE ADVANTAGE OF USING THE /FILE PARAMETER is: The file specified
  127. ;   in the /FILE parameter or the output-file keyword in the
  128. ;   FYF.INI file is closed prior to running the post-cmd user exit. If you
  129. ;   use redirection the redirected file is NOT closed prior to running the
  130. ;   post-cmd user exit.  Using the /FILE parameter allows the following:
  131. ;       FYF *.c "/FILEe:\fyf.out" "/POSTe e:\fyf.out"
  132. ;
  133. ;       This will run FYF, put the file listing into e:\fyf.out and will
  134. ;       then invoke the e editor on the e:\fyf.out file.
  135. ;
  136. ;
  137. ;
  138. ;default-drives=cde
  139. ;network-drives=1
  140. ;cd-drives=0
  141. ;compressed-search=1
  142. ;output-file=e:\fyf.out
  143. [registered]
  144.