home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / fileutil / lsdir_20.arj / LSDIR.DOC < prev    next >
Encoding:
Text File  |  1992-05-06  |  15.5 KB  |  406 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                                Led's Stacker Directory
  13.  
  14.                      Copyright (c) 1991, 1992 by Keith Ledbetter
  15.  
  16.  
  17.  
  18.                              This is a FREEWARE program.
  19.  
  20.  
  21.  
  22.                                 _______
  23.                            ____|__     |               (tm)
  24.                         --|       |    |-------------------
  25.                           |   ____|__  |  Association of
  26.                           |  |       |_|  Shareware
  27.                           |__|   o   |    Professionals
  28.                         -----|   |   |---------------------
  29.                              |___|___|    MEMBER
  30.  
  31.  
  32.  
  33.                              Written by Keith Ledbetter
  34.                                  4240 Ketcham Drive
  35.                                Chesterfield, VA  23832
  36.                                    (804) 674-0780
  37.                            (6:00pm - 10:00pm Eastern Time)
  38.  
  39.  
  40.                            Tech Support BBS:   Blue Ridge Express
  41.                                                804-790-1675
  42.                                                30 Phone Lines (2400 bd)
  43.                                                Sub-board KEITHL
  44.                                                ("J KEITHL")
  45.  
  46.  
  47.                         Electronic mail on  GEnie: ORION.MICRO
  48.                                        Compuserve: 72240,1221
  49.                                               AOL: KLedbetter
  50.  
  51.  
  52.  
  53.                             Program and Documentation are
  54.                     Copyright (c) 1991, 1992 by Keith Ledbetter.
  55.                                 All rights reserved.
  56.  
  57.  
  58.                      Portions Copyright Borland, International.
  59.              Written with Borland C/C++ 3.0 and Borland Turbo Assembler.
  60.  
  61.                                Led's Stacker Directory
  62.  
  63.  
  64.                Led's Stacker Directory (LSDIR) is my "quick-fix" answer  to
  65.           making a more intelligent SDIR command.   Since Stac  Electronics
  66.           has not yet released any developer information on Stacker volumes
  67.           and the Stacker/DOS interface,  this program must  do what is  at
  68.           best called a "kludge" among programmers:
  69.  
  70.  
  71.                1.   It calls Stac Electronic's SDIR command (which came 
  72.                     with your Stacker package), redirecting the output of 
  73.                     the SDIR command to a temp file on drive C:.  This 
  74.                     means that the SDIR command MUST BE IN SOMEWHERE IN 
  75.                     YOUR PATH!
  76.  
  77.  
  78.                2.   It then reads this temp file in and manipulates the 
  79.                     data to do the directory listing.
  80.  
  81.  
  82.                The main reason I  wrote LSDIR is because  I don't like  the
  83.           way Stac's SDIR command displays  compression ratios in the  form
  84.           of 12.6:1.    Just  try figuring out  what that  really means  at
  85.           2:00am in the morning!  LSDIR  displays the compression ratio  in
  86.           "PKZIP-type" fashion (eg: 76%).   The normal  output of the  SDIR
  87.           command looks like this:
  88.  
  89.  
  90.               SAC      LIB   170257   6-07-91  12:00a   1.8:1
  91.               STARTC   OBJ      324   6-07-91  12:00a  16.0:1
  92.               _SAC     LIB   172251   6-07-91  12:00a   1.8:1
  93.               SAM      LIB   167341   6-07-91  12:00a   1.8:1
  94.  
  95.                     17 File(s) 26845184 bytes free
  96.                     Directory compression ratio =  1.8:1
  97.  
  98.  
  99.  
  100.  
  101.           The default output from LSDIR looks like this:
  102.  
  103.  
  104.               sac      lib   170257   6-07-91  12:00a  ( 45%)
  105.               startc   obj      324   6-07-91  12:00a  ( 94%)
  106.               _sac     lib   172251   6-07-91  12:00a  ( 45%)
  107.               sam      lib   167341   6-07-91  12:00a  ( 45%)
  108.  
  109.                     17 File(s) 26845184 bytes free
  110.                     Directory compression ratio =  45%
  111.  
  112.  
  113.  
  114.  
  115.  
  116.                                      Page 1
  117.  
  118.                                Led's Stacker Directory
  119.  
  120.  
  121.           In the above example,  the display for  "sac.lib" is saying  that
  122.           the file was  compressed by  45%.       If you  specify the  "/r"
  123.           switch, then LSDIR  will "reverse" the  compression display  like
  124.           this:
  125.  
  126.  
  127.               sac      lib   170257   6-07-91  12:00a  ( 55%)
  128.               startc   obj      324   6-07-91  12:00a  (  6%)
  129.               _sac     lib   172251   6-07-91  12:00a  ( 55%)
  130.               sam      lib   167341   6-07-91  12:00a  ( 55%)
  131.  
  132.                     17 File(s) 26845184 bytes free
  133.                     Directory compression ratio =  45%
  134.  
  135.  
  136.           When reversing the display, the program now shows that  "sac.lib"
  137.           is taking up 55% of its original disk space.   If you specify the
  138.           "/c" switch,  LSDIR  will  also show  SDIR's  "nn:1"  compression
  139.           values, like this:
  140.  
  141.  
  142.               sac      lib   170257   6-07-91  12:00a   1.8:1  ( 45%)
  143.               startc   obj      324   6-07-91  12:00a  16.0:1  ( 94%)
  144.               _sac     lib   172251   6-07-91  12:00a   1.8:1  ( 45%)
  145.               sam      lib   167341   6-07-91  12:00a   1.8:1  ( 45%)
  146.  
  147.                     17 File(s) 26845184 bytes free
  148.                     Directory compression ratio =  1.8:1 (45%)
  149.  
  150.  
  151.           The last two switches that you  can specify are the "/p"  switch,
  152.           which pauses the display when the  screen fills up, and the  "/?"
  153.           switch, which displays a short help screen.
  154.  
  155.           Remember, the  SDIR.EXE program  from  Stac Electronics  must  be
  156.           somewhere in your PATH so that LSDIR can find it.   If you use an
  157.           "aliasing" command shell such as NDOS,  4DOS, or DOS 5's  DOSKEY,
  158.           you can ALIAS LSDIR to SDIR with a command like this (for 4DOS or
  159.           NDOS):
  160.  
  161.                                  alias sdir `lsdir`
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.                                      Page 2
  174.  
  175.                                Led's Stacker Directory
  176.  
  177.  
  178.  
  179.  
  180.  
  181.                            The LSDIR environment variable
  182.                            ------------------------------
  183.  
  184.                By default,  LSDIR creates  (and then  deletes) a  temporary
  185.           file named C:\LSDIR$$$.$$$.   If  you don't have sufficient  disk
  186.           space on drive  C:, you can  tell LSDIR to  create it on  another
  187.           drive by setting the LSDIR environment  variable.   For  example,
  188.           "SET LSDIR=D" would cause the temp file to be created in the root
  189.           directory of drive D:.
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.                                    Update History
  208.                                    --------------
  209.  
  210.               v1.0   9-Sep-91      Initial release.
  211.  
  212.               v2.0   6-May-92      Fixed the program to be compatible with
  213.                                    changes made in Stacker 2.0's SDIR
  214.                                    command.
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.                                      Page 3
  231.  
  232.                           Keith Ledbetter's Product Catalog
  233.  
  234.  
  235.                Listed below is a chart of  my other shareware and  freeware
  236.           utilities, along with the current version  number of each.   Also
  237.           listed is  the filename  that you  will find  them under  on  BBS
  238.           systems (please note that they may be different on your  favorite
  239.           BBS's, but it  should help  you at  least get  close to  locating
  240.           them).   When you register one of my Shareware programs, you will
  241.           receive a disk with all of these utilities on it.
  242.  
  243.           Filename       Version            Description
  244.           -----------    -------        ----------------------------------
  245.           SST_53a.ZIP      5.3a         The ultimate  file-finder  program.
  246.                                         PC/Computing  magazine  called  SST
  247.                                         "the Concorde of all file finders".
  248.                                         Shareware: $15
  249.  
  250.           LCD_40b.ZIP      4.0b         "Led's  Change  Directory"  is   an
  251.                                         intelligent   directory    changing
  252.                                         program.   This program  was  voted
  253.                                         one of  "the 10  best utilities  of
  254.                                         1990"  by  the  "Public  (software)
  255.                                         Library" magazine.
  256.                                         Shareware: $15
  257.  
  258.           LACE_11.ZIP      1.1          LACE    ("Led's    Autoexec     and
  259.                                         Configuration Editor") is a  device
  260.                                         driver that allows you to  maintain
  261.                                         up   to   14   different    boot-up
  262.                                         configurations from within a single
  263.                                         CONFIG.SYS file.  LACE is very easy
  264.                                         to set up and use.
  265.                                         Shareware: $15
  266.  
  267.           AV_12.ZIP        1.2          "Archive Viewer" is used to display
  268.                                         the names of members of all of  the
  269.                                         popular  archiving  programs  (ZIP,
  270.                                         ARC, LHARC, PKARC,  ZOO, PAK).   No
  271.                                         longer  do  you  have  to  struggle
  272.                                         remembering   the   syntax   to   6
  273.                                         different archiving programs.
  274.                                         Freeware: $0
  275.  
  276.           X_30.ZIP         3.0          "X: The Executioner" can save you a
  277.                                         lot of disk space.  X allows you to
  278.                                         ZIP  down   those   seldom-used-but
  279.                                         hard-to-delete .COM, .EXE, and .BAT
  280.                                         files  into  one  system   "Command
  281.                                         Library".   You  can  then  execute
  282.                                         them easily by simply typing an "x"
  283.                                         in front of  the command line  (eg:
  284.                                         "x chkdsk c:").
  285.                                         Freeware: $0
  286.  
  287.                                      Page 4
  288.  
  289.                           Keith Ledbetter's Product Catalog
  290.  
  291.  
  292.           ADMENU30.ZIP     3.0          If you own an Adlib Music card, you
  293.                                         need this program.   It allows  you
  294.                                         to ZIP down all of those .ROL  song
  295.                                         files you've accumulated, yet still
  296.                                         play them  with  no  extra  effort!
  297.                                         Uses a mouse-able, easy-on-the-eyes
  298.                                         window system.
  299.                                         Freeware: $0
  300.  
  301.           DELDIR12.ZIP     1.2          "Delete Directory"  allows  you  to
  302.                                         delete an entire directory (and all
  303.                                         directories  under  it)  with   one
  304.                                         quick command.   You will be  shown
  305.                                         totals of  what  you are  about  to
  306.                                         delete and then be asked to confirm
  307.                                         (the confirm process  can be  over-
  308.                                         ridden from the command line).
  309.                                         Freeware: $0
  310.  
  311.           DIRSIZ11.ZIP     1.1          "Directory Size Information" allows
  312.                                         you to easily  determine the  total
  313.                                         size (in both  files and bytes)  of
  314.                                         any directory.
  315.                                         Freeware: $0
  316.  
  317.           DUPICO10.ZIP     1.0          "Duplicate Icon Deleter" is for any
  318.                                         Windows   3.0    user    who    has
  319.                                         accumulated tons of icons.  It will
  320.                                         go through a  directory and  delete
  321.                                         all    duplicate    icon    images,
  322.                                         regardless of what they are named.
  323.                                         Freeware: $0
  324.  
  325.           TIMER10.ZIP      1.0          This program allows  you to  easily
  326.                                         time the execution of any  program.
  327.                                         Simply  use  TIMER  to  invoke  the
  328.                                         command (eg: "timer chkdsk C:") and
  329.                                         you   will   be   shown,   at   the
  330.                                         completion  of  the  command,   the
  331.                                         elapsed time.
  332.                                         Freeware: $0
  333.  
  334.           UNTAB10.ZIP      1.0          One   of   the   fastest   "un-tab"
  335.                                         programs you will  find.  It  takes
  336.                                         the specified input file and copies
  337.                                         it to  the specified  output  file,
  338.                                         replacing all  tab characters  with
  339.                                         hard blanks (you  specify the  "tab
  340.                                         size").
  341.                                         Freeware: $0
  342.  
  343.  
  344.                                      Page 5
  345.  
  346.  
  347.                                  Distribution Sites
  348.  
  349.  
  350.  
  351.                  You can download all of my programs from the Blue Ridge
  352.             Express BBS  in  Richmond,  VA.      This  is  the  official
  353.             technical support board for all of my software, and there's
  354.             a special "Keith  Ledbetter" message section  where you  can
  355.             quickly get your questions answered.   Once you log on, just
  356.             do a "J KEITHL"  to join my  sub-board.  First-time  callers
  357.             have access to both my message  base and all of my  download
  358.             files.  Please  note that  you must  do a  "J MAIN"  command
  359.             before downloading any files.
  360.  
  361.                  The Blue Ridge  Express is a  first-class BBS, with  30
  362.             phone lines; no need to worry  about getting a busy  signal!
  363.             The number is:
  364.  
  365.                              The Blue Ridge Express BBS
  366.                                     804-790-1675
  367.  
  368.  
  369.  
  370.                  All of  my  software  can also  be  obtained  from  the
  371.             following shareware vendors:
  372.  
  373.  
  374.                            Alternative Personal Software
  375.                            269 Springside Drive  Suite C
  376.                            Hamilton, Ontario
  377.                            Canada  L9B 1P8
  378.                            Tel: (416) 577-4068
  379.  
  380.  
  381.                            PC Assist Limited
  382.                            4 Carruber's Close
  383.                            135 High Street
  384.                            Edinburgh,  EH1 1SJ
  385.                            Scotland
  386.                            Tel: 031-557-6432
  387.  
  388.  
  389.                            BroCo Software
  390.                            P. O. Box 446
  391.                            3760 AK  SOEST
  392.                            Holland
  393.                            Tel: 31-2155-26650
  394.  
  395.  
  396.                            EURO BOARD
  397.                            John Warren
  398.                            Postfach
  399.                            3920 ZERMATT, VS
  400.                            Switzerland
  401.                            BBS:  (0228) / 476-111-06 (Swiss Telepac)
  402.  
  403.  
  404.  
  405.  
  406.                                        Page 6