home *** CD-ROM | disk | FTP | other *** search
/ On Disk Monthly 65 / odm65.zip / SDIR.TXT < prev    next >
Text File  |  1992-01-15  |  5KB  |  153 lines

  1. SELECTIVE DIR
  2. BANNER COLORS 7 7
  3. SG
  4. sdir static
  5. delayicon
  6. AG
  7. sdir animation
  8. L #1 1 63,-200;63,59 5 3 B
  9. T #2 1 189,67 0
  10. L #3 1 -80,67;40,67 5 3 B
  11. T #4 1 189,67 8 B
  12. T #5 1 200,274 0 B
  13. R #3 1 0
  14. L #3 1 40,67;40,107 4 3 B
  15. R #4 1 0
  16. T #4 1 189,107 3 B
  17. R #3 1 0
  18. L #3 1 40,107;40,187 8 3 B
  19. R #4 1 0
  20. T #4 1 189,187 3 B
  21.  
  22. Have you ever wished DIR would allow you to list multiple file
  23. types in one directory listing?  Wouldn't it be nice if DIR gave
  24. you a size report that was actually useful?  The sad truth is
  25. that DIR just isn't all that powerful.  That's why we've created
  26. Selective Directory (SDIR).  It solves DOS's DIR shortcomings in
  27. one easy-to-use program.
  28.  
  29.  
  30. ^CMain Features:
  31.  
  32. Multiple file masks - SDIR allows you to issue multiple file
  33. masks on the command line to access directories of just those
  34. files.  All DOS wildcard specifications are supported.
  35.  
  36. Accurate size reports - By default, SDIR will report how much
  37. space the listed files will require on a fixed disk (hard drive),
  38. a high density disk (1.2MB and 1.44MB) and double density disk
  39. (360k and 720k disks).
  40.  
  41. Directory recursion - SDIR has the ability to scan all
  42. subdirectories stemming from the current one and deliver total
  43. file and size reports. If you've ever wondered how much hard disk
  44. space Windows(tm) and all its subdirectories take up, SDIR can
  45. tell you.
  46.  
  47. Help: Command line help is always available by typing SDIR /?.
  48.  
  49. Automatic video mode detection - SDIR will detect and run in both
  50. 25 and 50-line modes.
  51.  
  52. SDIR is useful in two ways: first, to place different types of
  53. files in one directory listing with one easy command, and second,
  54. to see how much space files in a single directory (or directory
  55. structure) actually occupy on disk.  SDIR lists the size reported
  56. by DOS for each file, as well as the actual disk space a file
  57. occupies.
  58.  
  59. The benefits of the first feature should be obvious.  In DOS you
  60. cannot type "DIR *.EXE *.COM *.BAT" to get a list of all
  61. executable files.  In DOS you would have to use DIR three times.
  62. With SDIR you would type "SDIR *.EXE *.COM *.BAT" and the file
  63. listing is yours.
  64.  
  65. The second feature of SDIR requires a little explanation.  A DOS
  66. disk is partitioned into sectors; files are stored in these
  67. sectors.  When a file is stored in a sector, the entire sector is
  68. used, whether the file fills the sector or not.  Disk space is
  69. reduced by the size of the sectors used, NOT by the number of
  70. bytes in the file.  The type of disk determines how many bytes
  71. each sector holds.  For example, on a hard disk, each sector is
  72. 2048 bytes long.  A program which is only 40 bytes long would
  73. take up 2048 bytes of disk space, even though DIR will list the
  74. file at 40 bytes!
  75.  
  76. High density disks have 512 byte sectors.  Therefore, that same
  77. 40 byte program which took up 2048 bytes on a hard disk, would
  78. only take up 512 on a high density floppy.  SDIR reports how much
  79. space all the files listed will take up on three disk types:
  80. Fixed disks (hard drives), double density (360k & 720k) and high
  81. density disks (1.2MB & 1.44MB disks).  This is useful if you want
  82. to see if there is enough space on a floppy to hold all of your
  83. files!
  84. ^P
  85. ^CSyntax:
  86.  
  87. SDIR [/A] [/ND] [/R] [/DD|/HD|/FD] [/DR] [/W] [/P] [file masks]
  88.  
  89.  
  90. A parameter of "/?" will yield a full-screen page of help.
  91. Parameters enlosed in brackets are optional.  Three parameters
  92. (/DD, /HD and /FD) are mutually exclusive.  Parameters may appear
  93. in any order.
  94. ^P
  95. ^CParameters:
  96.  
  97. /A          Scan all directories stemming
  98.             from this one.
  99.  
  100. /R          Give a size report for each
  101.             directory scanned (used with the
  102.             /A parameter).
  103.  
  104. /ND         Don't display file listing.
  105.  
  106. /DD         Show how much space files would
  107.             occupy on a double density drive.
  108.  
  109. /HD         Show how much space files would
  110.             occupy on a high density drive.
  111.  
  112. /FD         Show how much space files would
  113.             occupy on a fixed disk (hard
  114.             drive).
  115.  
  116. /DR         Total directory report.
  117.  
  118. /W          Wide listing of files.
  119.  
  120. /P          Pause after a full screen.
  121.  
  122. masks       One or more wildcard masks of
  123.             files to scan.  Separate multiple
  124.             masks with a space.
  125.  
  126. /?          Help screen.
  127. ^P
  128. ^CExamples:
  129.  
  130. SDIR /A
  131. Gives a file and size report for all files in the current
  132. directory as well as those in any child directories.
  133.  
  134. SDIR *.EXE  *.TXT
  135. Gives a file and size report on all files with the extensions
  136. .EXE and .TXT in the current directory only.
  137.  
  138. SDIR /p
  139. Gives a file and size report for all files in the current
  140. directory, pausing after each full screen of information.
  141.  
  142. SDIR C:\ /A *.EXE
  143. Repots on all executable files in every directory on drive C.
  144.  
  145.  
  146. ^C^BOutside ^UOn Disk Monthly^U^B
  147.  
  148. To run this program outside ^B^UOn Disk Monthly^U^B, type:
  149. ^BSDIR^B.
  150.  
  151. ^BDisk files this program uses:^B
  152. ^FSDIR.EXE
  153.