home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 24b / hdm_2.zip / HDM.DOC < prev    next >
Text File  |  1986-11-06  |  14KB  |  213 lines

  1.      HDM II                                      The Hard Disk Menu System
  2.      June 25, 1986                          Copyright (C) 1986 by Jim Hass
  3.  
  4.         This program is a  DOS shell  that hides  the underlying operating
  5.      system from the uninitiated user,  yet does not get in the way of the
  6.      expert user.   The basic system consists of  ten menu pages with each
  7.      page having ten selections to choose from.   You start a selection in
  8.      classic Lotus style  by pointing to it  with the cursor  and pressing
  9.      the return key  or  by pressing the  number key  associated with that
  10.      selection.   Each selection can start a program, run a batch file, or
  11.      execute any  DOS command.   A selection can also have  multiple steps
  12.      which  can include any  or  all of the  possiblities above.   You can
  13.      change menu  pages by  pressing  F1 thru F10  keys to go  directly to
  14.      page  1 thru 10  or  use the PgUp and PgDn keys.   Each page and each
  15.      selection on each page has a user definable description.
  16.  
  17.         The slash key displays a 1-2-3 type menu at the top of the screen.
  18.      The choices from the menu include:   Help, Add, Change, Delete, Move,
  19.      Page, Run, Exit, and Quit.  If you select HELP you are presented with
  20.      another menu and screens  that explain how to use the  Hard Disk Menu
  21.      system.   ADD,  CHANGE,  DELETE,  and  MOVE  allow  you to  alter the
  22.      description  and  action taken by a  main menu selection.   PAGE lets
  23.      you change the description of a page.   RUN allows you to execute any
  24.      program,  DOS command,  or batch file from within the  Hard Disk Menu
  25.      program.   EXIT returns you to the DOS prompt and QUIT erases the top
  26.      menu and puts you back in the Hard Disk Menu.
  27.  
  28.      ---------------------------------------------------------------------
  29.      TO INSTALL:  Copy all the files from the  HDM II diskette to the root
  30.      directory  or  a subdirectory of your hard disk.  Make that directory
  31.      the default and enter HDM.   Once in the system enter /H and read the
  32.      HELP screens.  INSTALLATION NOTES has info on a permanent install.
  33.      ---------------------------------------------------------------------
  34.  
  35.      FILES CONTAINED ON THE "HDM II" DISKETTE:
  36.      1.  HDM.DOC ...... This Hard Disk Menu documentation.
  37.      2.  README ....... Install and Update documentation.
  38.      3.  README.BAT ... Displays the README file on the screen.
  39.      4.  INSTALL.BAT .. First time install of HDM. (usage: INSTALL C:\DIR)
  40.      5.  UPDATE.BAT ... Updates existing HDM.  (usage: UPDATE C:\DIR)
  41.      6.  HDM.BAT ...... Starts the Hard Disk Menu system.
  42.      7.  HDMX.BAT ..... Work file used by HDM to execute menu entries.
  43.      8.  HDMENU.COM ... Main program used by HDM.BAT to display menus.
  44.      9.  HDMENU.TXT ... Text file that holds all menu entries.
  45.      10. HDMHELP.CHN .. Help program and Help screens.
  46.      11. EPSON.COM .... Stand alone program for Epson print control codes.
  47.      12. IBMPRO.COM ... Same as EPSON, but for IBM ProPrinter.
  48.      The last two programs can be used in menu entries to send print codes
  49.      to your printer before running programs like 1-2-3, dBase, and others
  50.      that don't provide  easy methods  of printer setup.   An entry in HDM
  51.      might look like this:   C:~CD\DBASE3~EPSON~DBASE~
  52.      They can also be used with the  dBase III run command as part of your
  53.      own program to allow user selection of print styles.
  54.  
  55.      SOME COMMON QUESTIONS:
  56.      Q:  What language was the Hard Disk Menu written in?
  57.      A:  Turbo Pascal.
  58.      Q:  After I run a batch file from a menu selection I get a DOS prompt
  59.          instead of returning to the Hard Disk Menu.  What's wrong?
  60.      A:  When DOS runs a batch file (yours) from within a batch file (HDM)
  61.          it does not return  to complete the first batch file  which would
  62.          take you back to the menu.  You can remedy the situation by using
  63.          @@ in front of your batch file name.   If DW3 is a batch file and
  64.          your entry was: CD\DSPWRITE~DW3~ change it to: CD\DSPWRITE~@@DW3~
  65.      Q:  When I press /E to exit HDM,  sometimes I get the  DOS prompt and
  66.          other times I stay in the Hard Disk Menu.   Why does this happen?
  67.      A:  The problem may be this:   if you left HDM by using  /E  and then
  68.          returned to the menu by keying in HDM, you would have called in a
  69.          second copy of the Hard Disk Menu.  While in a secondary HDM, the
  70.          exit command (/E) returns to the primary Hard Disk Menu, not to a
  71.          DOS prompt.   The solution is to make sure you key in EXIT at the
  72.          DOS prompt to return to HDM II.  Another reason this could happen
  73.          is that the program can't find the file COMMAND.COM.    This file
  74.          is located by the PATH command in your AUTOEXEC.BAT file.  If you
  75.          don't have a PATH command, add one that points to your DOS files.
  76.          If you don't have an AUTOEXEC.BAT file, see your DOS manual.
  77.      Q:  Some DOS commands work fine from the Hard Disk Menu  while others
  78.          give me a message  that says  "Bad command or file name".    What
  79.          should I do to fix the problem?
  80.      A:  The DOS commands  that work are  probably the  internal commands.
  81.          The system can't find  the external  DOS commands.   See your DOS
  82.          manual  to see  which are  internal and which are external.   The
  83.          solution is a  PATH  command that  shows where the  DOS files are.
  84.          Add this to your AUTOEXEC.BAT file:   PATH C:\DOS
  85.          Replace  C:\DOS  with the directory that  contains your DOS files.
  86.  
  87.      ADVANCED FEATURES:
  88.      1.  The HDM command that should be in your AUTOEXEC.BAT file can have
  89.          parameters.   The first parameter is the  page number to display,
  90.          the second number is the menu selection on that page to highlight
  91.          with the cursor.   These two parameters  are positional,  if they
  92.          are not used they will both default to zero. The other parameters
  93.          all begin with a hyphen and can be in any sequence.
  94.          -A  would automatically  start the  procedure from  the first two
  95.          parameters.  An example:  if Symphony is on page four  and is the
  96.          tenth selection on that page,  it can automatically be started by
  97.          the following line in your AUTOEXEC.BAT file:  HDM 4 10 -A
  98.          The next parameters tell HDM II where to find certain files, they
  99.          all require a drive and directory immediately following the codes
  100.          with no spaces in between.
  101.          -C  shows the path to a second copy of the menu text file.   This
  102.          is useful for  backup copies of all  variable data in the menu or
  103.          as the permanent copy of HDMENU.TXT if HDM is used in a ram disk.
  104.          If -C is not used, a second copy of the text file is not created.
  105.          -H  shows the path to the help file, HDMHELP.CHN     (used by /H)
  106.          -T  shows the path to the text file, HDMENU.TXT   (all menu info)
  107.          -W  shows the path to the work file, HDMX.BAT    (created by HDM)
  108.          If -H, -T, or -W is not used the current drive/directory is used.
  109.          An example:  HDM -Cc:\ramdisk -Hc:\help -Tc:\hdmdir -Wc:\ramdisk
  110.  
  111.      2.  If the 100 entries in the  Hard Disk Menu are not enough for you,
  112.          you can use multiple HDM's.   Copy all the  HDM II files from the
  113.          original diskette to another drive  or  another directory.   Then
  114.          ADD the following entry to your primary HDM II:  C:~CD\DIR~@@HDM~
  115.          where  C: is the drive and  DIR is the subdirectory that contains
  116.          your secondary  HDM II.   When this  entry is  selected  from the
  117.          primary  HDM II,  your secondary  HDM II  is displayed  and is in
  118.          control.  The /E command will return you to your primary  HDM II.
  119.          This is different than using /E in the primary HDM II which takes
  120.          you  to the  DOS prompt.    There is  no limit  to the  number of
  121.          secondary  HDM's  and they can all be called from the primary  or
  122.          from other secondaries.
  123.          An alternate method of using  secondary HDM's  is to use the same
  124.          Hard Disk Menu program,  but different text (HDMENU.TXT) and work
  125.          files (HDMX.BAT).   This can be done using the -T and -W switches
  126.          explained above.  You will not need to copy any files, a new text
  127.          file will be created when you add your first menu entry, the work
  128.          file is created  as needed.   The action statement  of your  menu
  129.          selection in the primary HDM should look like this:
  130.                            @@HDM -TC:\NEWDIR -WC:\NEWDIR~
  131.          The path C:\NEWDIR  should be replaced by the directory that will
  132.          contain the secondary text file.   This directory must not be the
  133.          same  as the directory  containing  the  primary  Hard Disk Menu.
  134.  
  135.      3.  Variables can be set up  and  used in the action statement of any
  136.          menu selection.   They can also be use with the Run command (/R).
  137.          There are ten variables available,  numbered 0 - 9.  They are set
  138.          up by choosing Variables from the Top Menu (/V), then by choosing
  139.          a number.   You can then enter  any information  to be  stored in
  140.          that variable,  even other variables,  but be careful  not to put
  141.          the program  into a loop  by using a variable  within a  variable
  142.          that directly or indirectly  uses the original variable.   Once a
  143.          variable is set up  it can be refered to by  a menu selection  by
  144.          placing an & + number in it.   So if you have variable number one
  145.          set up and one or more action statements containing  &1,  the  &1
  146.          will be  replaced with  the information  that was  stored  in it.
  147.          These variables can also have up to nine parameters,  to use them
  148.          you  must  enclose the  entire  variable  and  its  parameters in
  149.          braces { }.   These parameters  in turn  can then also be used in
  150.          any  action statement,  in any variable,  or in the  Run command.
  151.          They are numbered  1 - 9  and  are refered to by placing a  %  in
  152.          front  of it.    The  parameters  can  contain  any  information,
  153.          including variables and other parameters  (&1, &2, %1, %2, etc.).
  154.          Again  you must be careful not to put  the program  in a loop  by
  155.          circular variable  or  parmeter calls.    An  example  of using a
  156.          variable  with a  parmeter  could look  like this  if  &1 = COPY:
  157.                  C:~CD\LOTUS~{&1 FILE.WKS} %1 A:~ERASE %1~
  158.          Everying  within  the braces  and  the  braces themself  would be
  159.          replaced by  the contents  of variable &1  which is  "COPY".  The
  160.          parameter %1 contains  "FILE.WKS"  because it was the first entry
  161.          (and only in this case)  for the variable &1.   Any %1's that are
  162.          used after this  are replace with  the contents of parameter  %1.
  163.          In this case the action to take becomes:
  164.                  C:~CD\LOTUS~COPY FILE.WKS A:~ERASE FILE.WKS~
  165.          A  more  interesting  version   of  this  variable  and  parmater
  166.          combination would be:  {&1 {?ENTER NAME OF FILE TO COPY & ERASE}}
  167.          This would first prompt the user for a file name,  that file name
  168.          would then be contained in the parameter  %1  which could be used
  169.          anywhere.   As an alternative to this, the variable &1 could have
  170.          contained:   COPY %1~ERASE %1~   instead of just COPY.   Then the
  171.          action to take statement would have been simplified to:
  172.                  C:~CD\LOTUS~{&1 {?ENTER NAME OF FILE TO COPY & ERASE}}~
  173.          Both methods give  the same result  because  the variable &1  now
  174.          contains  the %1's  and  the ERASE  which are  put in  to replace
  175.          the variable call  {&1...}  after the file name  is prompted for.
  176.          The rule is:   Inner braces  get evaluated  before  outer braces.
  177.          Parameters  within a  variable  are  seperated  by  spaces,  if a
  178.          parameter contains spaces,  it must be enclosed with braces to be
  179.          evaluated a one parameter.  An example of this is:
  180.                  {&2 THESE ARE SEPERATED PARMETERS}
  181.          The result of  evaluating this  variable and parmeter combination
  182.          is  &2  will be replaced by the contents of Variable 2 as defined
  183.          by  the  set  up  from  the  Top Menu  (/V),  and  the  following
  184.          parameters  contain this:    %1 = THESE, %2 = ARE, %3 = SEPERATE,
  185.          %4 = PARAMETERS, %5 thur %9 are null.   Another example:
  186.                  {&3 {THIS IS ONE PARAMETER} {THIS IS ANOTHER}}
  187.          This time the  parameters contain:    %1 = THIS IS ONE PARAMETER,
  188.          %2 = THIS IS ANOTHER, %3 thru %9 are null.
  189.          This may be a bit confusing,  but once you understand it  you can
  190.          set up some  very sophisticated  menu selections  that  can  make
  191.          difficult tasks very easy for a user to perform.
  192.          One caution: There is a 255 character limit to the final expanded
  193.          menu action  that could be exceeded  when all  the variables  and
  194.          parameters are expanded.   (HDM II will tell you if this happens)
  195.  
  196.      ---------------------------------------------------------------------
  197.      This is a shareware product.   Though HDM II is copyrighted,  you are
  198.      encouraged to copy and distribute this program to others. If you like
  199.      this product and find it useful,  please contribute  $15 to encourage
  200.      the author to continue in his software endeavor.
  201.      ---------------------------------------------------------------------
  202.  
  203.      Also send any suggestions you may have to improve the  Hard Disk Menu
  204.      and/or any bugs you may have uncovered to:
  205.  
  206.                                    JIM HASS
  207.                                  7114 KENNETH
  208.                                  PARMA,  OHIO
  209.                                   44129-2956
  210.  
  211.  
  212.                          THANK YOU FOR YOUR SUPPORT!
  213.