home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / BUERG / DD113.ZIP / DD.DOC next >
Encoding:
Text File  |  1990-09-08  |  13.9 KB  |  260 lines

  1. DD - a disk directory utility - Version 1.13
  2. Copyright (c) 1990 D & D Software Inc.  All rights reserved
  3.  
  4. This program provides a variety of information about files on MS-DOS
  5. media.
  6.  
  7. The author makes no warranties concerning this program nor requests any
  8. donation for its use.
  9.  
  10. Only non-commercial use and distribution is authorized. Inclusion within
  11. a commercial software or hardware distribution or promotion are
  12. expressly prohibited without prior written approval.
  13.  
  14. WHY DD WAS WRITTEN
  15.  
  16. Over the past few years I've found myself using a variety of directory
  17. programs because no single product included all the features I wanted. 
  18. DD was written primarily to consolidate these features I find of value
  19. into one "all purpose" program.  Other options, not found in any
  20. directory program I am familiar with, were also added.
  21.  
  22. USE
  23.  
  24. The easiest way to explain how dd should be used is to present and
  25. discuss the help screen.  The screen below can be generated by
  26. executing dd with the help option ("dd /h<ret>").
  27.  
  28.  
  29. Dennis' Directory Utility            Ver. 1.13   09/08/90                       
  30. Copyright (C) 1990  D & D Software Inc.  Lindenhurst, NY                        
  31.                                                                                 
  32. Usage: dd [-options] [pathspec] [/options] [pathspec] [>file or >prn]           
  33. Options:                   (d) = default                                        
  34.          FILES TO SHOW               6  file name only                          
  35. R  regular & read only files  (d)              TOGGLES                          
  36. A  reg/ro/hidden/sys/dir files       L  use lower case for file names           
  37. D  subdirectories                    P  turn off pause between screens          
  38.           SORT ORDER                 C  turn on clear screen                    
  39. F  file name  (d)                    I  invert time/size sort (high to low)     
  40. S  file size                         K  file size based on clusters taken       
  41. T  file time & date                  J  just show archive files                 
  42. X  file extension                    *  no attributes in 4 colum mode           
  43. N  no sort - show in DOS order              MISCELLANEOUS                       
  44.        COLUMNS DISPLAYED             M  modify DD.EXE to cmd line options       
  45. 1  use with >file for bat files      O  restore original option values          
  46. 2  full time, date, attributes       H  show this help screen                   
  47. 4  name & size in Kbytes  (d)                                                   
  48. The /d & /k options used together will show size of directories.                
  49.                                                                                 
  50. pathspec = [d:][\path\]filename  Wildcards OK (defaults to *.*)                 
  51. A ∙ next to a file's size in 4 column mode means it hasn't been archived,       
  52. while a * means the file is marked hidden or system.                            
  53.  
  54.  
  55. The Usage line gives the syntax of a command:
  56.  
  57. dd [-options] [pathspec] [/options] [pathspec] [>file or >prn]
  58.  
  59. Brackets [] enclose optional parameters, thus the easiest way to use dd
  60. is to simply execute the program as "dd<ret>", as all the parameters
  61. are optional.  The parameters indicate that options, if specified,
  62. should be preceded with either a "-" or "/" character to differentiate
  63. them from a pathspec.  A pathspec can be explicit, ambiguous or
  64. non-existent.  For instance to list the files in the current directory,
  65. "dd<ret>" is enough.  The pathspec "\currentdirectory\*.*" is implied. 
  66. If you wanted to see all  files in another directory, named utility,
  67. "dd \utility<ret>" would accomplish the task and implies the pathspec
  68. \utility\*.*.  To see just one type of file in the utility directory,
  69. say .exe files, the full pathspec is required (i.e. "dd
  70. \utility\*.exe<ret>").
  71.  
  72. The reason the usage line indicates more than one pathspec is because
  73. more than one pathspec can be listed during one execution of dd.  If
  74. you wished to list all files in the current directory, the utility
  75. directory and on drive A, the command would be "dd *.* \utility
  76. a:<ret>".
  77.  
  78. The final parameter on the usage line [>file or >prn] is meant to
  79. indicate that the listing can be redirected under DOS's normal
  80. facilities to a file or the printer on your system.  If you want to
  81. create a file of the current directory's .exe files you would say "dd
  82. *.exe >myfile<ret>".  When redirection is in effect screen pause is
  83. always turned off.
  84.  
  85. Options can be interspersed between the pathspec's on the command line. 
  86. DD comes configured to show regular and read only files, sorted on file
  87. name in a four column layout.  Options enable you to change these
  88. defaults for the current execution of the program or permanently with
  89. the (m)odify option.  Most of the options are self explanatory but a
  90. few points should be stressed.  The program recognizes stringed options
  91. after the / or - character.  Thus /asl is equivalent to /a/s/l or /a /s
  92. /l.  Options must always precede any pathspec they are to be applied
  93. against.  Thus "dd *.com /asl<ret>" is invalid and must be executed as
  94. "dd /asl *.com<ret>".  Options apply to all following pathspecs unless
  95. changed.  Thus "dd /l *.com \utility" will show all com files in the
  96. current directory and all files in the utility directory in lower case. 
  97. "dd /s *.com /f \utility<ret>" will show all com files in the current
  98. directory sorted by size and then all files in the utility directory
  99. sorted by filename.
  100.  
  101. The options under FILES TO SHOW, SORT ORDER and COLUMNS DISPLAYED are
  102. choices.  Only one of each can be specified for each block of options
  103. entered.  The options listed under TOGGLES are not mutually exclusive
  104. and any combination can be specified within an option block.  They are
  105. called toggles because invoking them twice reverses what they do.  For
  106. example: "dd /l *.com /l \utility<ret>" will show the com files in the
  107. current directory in lower case and all files in the utility directory
  108. in upper case.
  109.  
  110. Some of the options are not as clear as possible due to space
  111. limitations on the help screen.
  112.  
  113. Under FILES TO SHOW, the /d option will list just subdirectories.  If
  114. this option is executed for a directory other than the default
  115. directory, it should be specified as: "dd /d \utility\<ret>" to see any
  116. subdirectories under the \utility directory.  The trailing "\" is
  117. required in this case, otherwise dd thinks you wish to see if there is
  118. a subdirectory called \utility under the current directory.  A
  119. combination of the /d and /k options (/dk) will show the size of each
  120. directory.  The size will include space taken by any files or
  121. directories below that directory.
  122.  
  123. The /a option will list all files, including any hidden or system
  124. files, followed by any subdirectories.
  125.  
  126. Under COLUMNS DISPLAYED, the /1 option will produce a listing similar to
  127. the following:
  128.  
  129. C:\UTILITY\DD.EXE
  130. C:\UTILITY\ERA.EXE
  131. C:\UTILITY\CAT.EXE
  132.  
  133. The purpose of the option is to create a skeleton of a bat file so it
  134. should be run with redirection to a filename:
  135.          "dd /1 pathspec >xxx.bat<ret>".
  136. Once the xxx.bat file is created with just the files you wish to do
  137. something to, use an editor to complete the task.
  138.  
  139. Under TOGGLES, the /I option will cause sorts in time/date or size order
  140. to list with the most recent date or largest file size first rather
  141. than the normal order of earliest date or smallest file first.  The /K
  142. option will show file sizes in terms of the actual space they occupy on
  143. your disk rather than the exact number of bytes according to DOS.  The
  144. discrepancy is due to the way DOS works when allocating space for
  145. files.  It allocates space for files in blocks called clusters.  A
  146. cluster is normally between 1024 and 8192 bytes, depending on how your
  147. disk is set up.  So if you have a tiny file that shows 12 bytes under
  148. the dir command, the file will really take up at least 1024 bytes on
  149. the disk.  The /J option will show only files that have not been backed
  150. up, helpful in locating files that need backing up when there are a lot
  151. of files in a directory.  See the discussion of the four column display
  152. below for discussion of the /* option.
  153.  
  154. Under MISCELLANEOUS, the /O option simply cancels any changes you've
  155. made to the defaults and executes the program with the original
  156. defaults.  The /M option is used to permanently modify the default
  157. options.  Say you wish to normally use lower case and the 2 column
  158. format.  Typing "dd /2l" every time you run dd gets old fast.  So you
  159. would execute dd as: "dd /2lm<ret>" to permanently change the defaults
  160. to your preferences.  If you later decide to go back to the original
  161. defaults, a "dd /om<ret>" will do the trick.  If you are running DOS
  162. 3.0 or above, the /m option will work regardless of where dd.exe is
  163. located and regardless of what you may have renamed dd.exe to.  Under
  164. earlier versions of DOS, the /m option will only work when dd.exe
  165. resides in the directory you execute dd from and only if the file
  166. retains the name dd.exe (all other options will work normally as long
  167. as dd's directory is on your path).
  168.  
  169. LISTING ORDER
  170.  
  171. Files are listed in "page based" order, exactly the way words are
  172. listed in a dictionary.  Any time the number of files exceeds one
  173. screen full, the files will be split based on the sort order.  So if
  174. you are listing in file name order and the listing requires two
  175. screens, all files starting with the letter A through possibly N will
  176. be listed on the first screen, followed by files starting with O
  177. through Z on the second screen.
  178.  
  179. DISPLAY DIFFERENCES
  180.  
  181. The following listings illustrate the differences between the various
  182. column options.
  183.  
  184. The heading is almost the same under each option.  The first line
  185. consists of any volume name on the drive, followed by a colon and the
  186. drive letter and path and the current date and time.  The second line
  187. shows:
  188.  
  189.     Total Bytes - cumulative bytes for files shown,
  190.     Total Files - obvious
  191.     Free - free space remaining on the drive
  192.     Used - total space used on the drive
  193.  
  194. Below is the listing obtained with the /2 option.  All file size
  195. information is in bytes, file dates and times are shown and the 4
  196. column block between the file size and date shows how the file's
  197. attribute byte is set.  The block can contain one or more of the
  198. letters RSHA, standing for Read only, System, Hidden and Archive.  A
  199. file with none of these attributes set simply shows four dashes at that
  200. location.  Any file of 10,000,000 or more bytes will show +10M in place
  201. of the actual file size, due to a lack of space.
  202.  
  203. F:\MSC\DD\                                                  Wed  9/05/90  14:16 
  204. Total Bytes: 188,357  Total Files: 21  Free: 21,458,944  Used: 11,976,704       
  205. ───────────────────────────────────────┬─────────────────────────────────────── 
  206. 50      .COM    109 ----  7/08/89 13:58│LOOK    .OBJ   1194 ----  2/03/90 16:13 
  207. DD      .BAK  12556 ---A  9/05/90 14:07│MAKEFILE        372 ----  2/03/90 13:36 
  208. DD      .C    22871 ----  2/14/90 20:19│READ    .BAK    550 ----  5/10/90 21:08 
  209. DD      .DOC  12880 ---A  9/05/90 14:16│READ    .ME    1022 ----  5/10/90 21:17 
  210. DD      .EXE  20177 ----  2/14/90 20:19│SSD     .COM   3584 ----  6/29/84  7:03 
  211. DD      .H     2281 ----  2/03/90 16:06│UNTAG   .BAK    602 ----  5/10/90 21:20 
  212. DD      .OBJ   9508 ----  2/14/90 20:19│UNTAG   .C      729 ----  5/10/90 21:23 
  213. DDCOLOR .ARC  54920 ----  9/01/89 15:54│UNTAG   .EXE   7617 ----  5/10/90 21:02 
  214. DDSORT  .C    12487 ----  2/14/90 20:12│UNTAG   .LZH  13577 ----  5/10/90 21:23 
  215. DDSORT  .OBJ   6931 ----  2/14/90 20:16│UNTAG   .OBJ    574 ----  5/10/90 21:02 
  216. LOOK    .C     3816 ----  2/03/90 16:13│                                        
  217.  
  218. The four column (default) listing below shows that all sizes are in
  219. Kbytes, allowing for a simpler and usually adequate display as well as
  220. allowing for more columns.  A Kbyte is 1024 bytes, calculated by
  221. dividing the files size in bytes by 1024.  Any remainder is rounded up,
  222. thus a file listed with a size of 1 could be between 1 and 1024 bytes. 
  223.  
  224. The dot shown after some of the file sizes indicates that the archive
  225. bit is set.  No indication of read only status is indicated with this
  226. display, although such files will be flagged if the /A option is
  227. specified.  An asterisk character denotes the hidden and/or system bit
  228. is set.  The dot takes precedence over the asterisk.  The dots and
  229. asterisks can be replaced with a simple 'k' to indicate the sizes are
  230. in kbytes by using the /* command line option.
  231.  
  232. F:\MSC\DD\                                                  Wed  9/05/90  14:19 
  233. Total Bytes: 186K  Total Files: 22  Free: 20,954K  Used: 11,698K                
  234. ──────────────────┬───────────────────┬───────────────────┬───────────────────  
  235. 50      .COM    1 │ DD      .OBJ   10 │ MAKEFILE        1 │ UNTAG   .BAK    1   
  236. DD      .BAK   13∙│ DDCOLOR .ARC   54 │ READ    .BAK    1 │ UNTAG   .C      1   
  237. DD      .C     23 │ DDSORT  .C     13 │ READ    .ME     1 │ UNTAG   .EXE    8   
  238. DD      .DOC   13∙│ DDSORT  .OBJ    7 │ SCREEN  .CUT    2∙│ UNTAG   .LZH   14   
  239. DD      .EXE   20 │ LOOK    .C      4 │ SSD     .COM    4 │ UNTAG   .OBJ    1   
  240. DD      .H      3 │ LOOK    .OBJ    2 │                                         
  241.  
  242. The six column display is intended to simply show the maximum number of
  243. files in the smallest amount of screen space.
  244.  
  245. F:\MSC\DD\                                                  Wed  9/05/90  14:19 
  246. Total Bytes: 190,673  Total Files: 22  Free: 21,456,896  Used: 11,978,752       
  247. ────────────┬────────────┬────────────┬────────────┬────────────┬────────────   
  248. 50      .COM│DD      .EXE│DDSORT  .C  │MAKEFILE    │SSD     .COM│UNTAG   .EXE   
  249. DD      .BAK│DD      .H  │DDSORT  .OBJ│READ    .BAK│UNTAG   .BAK│UNTAG   .LZH   
  250. DD      .C  │DD      .OBJ│LOOK    .C  │READ    .ME │UNTAG   .C  │UNTAG   .OBJ   
  251. DD      .DOC│DDCOLOR .ARC│LOOK    .OBJ│SCREEN  .CUT│                            
  252.  
  253.  
  254. I hope you get as much use out of DD as I have and welcome any comments
  255. you may have.
  256.  
  257.  
  258. Dennis Vallianos
  259. Compuserve ID 70406,1163
  260.