home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / misc~1 / 30 / pcbatch / pcbatch.doc < prev    next >
Encoding:
Text File  |  1986-12-04  |  4.8 KB  |  114 lines

  1. These batch files are for use with PCommand, a shell program written by William
  2. Wong of Solid Applications.  It is a freeware program.  You may obtain a
  3. registered copy by sending $25 to:
  4.  
  5.      Solid Applications
  6.      1333 Moon Dr.
  7.      Morrisville, PA 19067
  8.  
  9. If you already have a copy of PCommand, I strongly encourage you to send in the
  10. $25.  In order for Mr. Wong to be able to update the product and to write other
  11. software for the ST, he needs to have an income from his current product.  If
  12. you want to see more programs like this, or an even better version of PCommand,
  13. then you need to send him the $25 so that he can afford to devlop products for
  14. the ST.
  15.  
  16. All the files which require parameters will display information about
  17. themselves if you call them with no parameters.  These files are: Q, CHKDSK,
  18. COLOR, and MOVE.  Q and MOVE both call the batch file QUERY.  To optimize
  19. spped, QUERY should be placed in whatever drive\folder you set for your default
  20. path.  The edit Q.BAT and MOVE.BAT to specify exactly where QUERY.BAT can be
  21. found.
  22.  
  23.  
  24.  
  25. QUERY.BAT - this batch file is called by some of the other batch files
  26.      included in this archive.  It's purpose is to display a box containing
  27.      what command is to be executed, and giving a yes/no/abort choice to
  28.      the user.  Abort will not only exit query, but also the batch file
  29.      that called it.
  30.  
  31.  
  32. Q.BAT - this batch file allows you to execute commands with a query.  For
  33.      example, if you wanted to delete some, but not all of the files from
  34.      drive D:, you would type:
  35.  
  36.            Q DEL D:
  37.  
  38.      A file selector box would open, and you would specify the drive, path,
  39.      and filespec (default is *.*).  You could change the name of the
  40.      filespec if you wanted to be more specific.  Once you're ready, press
  41.      RETURN or click on OKAY. You will then be presented with a box telling
  42.      you the name of a file to delete. You may select yes, no, or abort.
  43.      Abort will stop the batch process.  You may also use this with the
  44.      COPY command.  In this case you must enter the source drive\folder and
  45.      destination drive\folder.  For example to copy *.bat files from drive
  46.      a:\batch to drive d:\batch you would enter the following:
  47.  
  48.            Q COPY A:\BATCH D:\BATCH
  49.  
  50.      You would be presented with a file selector box.  You would backspace
  51.      one character and enter .BAT in the filename line.  Press RETURN or
  52.      click on OK and you will be queried as to whether to copy each .BAT
  53.      file.
  54.  
  55.      NOTE: unfortunately, the file selector box is required.  This is
  56.      because the %%f returned by the FOR loop only contains the filename,
  57.      but leaves out the drive and folder.  It is neccessary to use the file
  58.      selector box so that the drive and folder information can be
  59.      obtained.
  60.  
  61.      You should modify the Q.BAT file to specify exactly where QUERY.BAT
  62.      will reside - this should be in whatever drive\folder you keep your
  63.      batch files in.
  64.  
  65.  
  66. CON.BAT - this turns the cursor back on.  A few programs will turn the
  67.      cursor off when they exit.  Typing CON will restore the cursor.
  68.  
  69.  
  70.  
  71. COLOR.BAT - this allows you to set the foreground color.  For example,
  72.      COLOR RED would turn the letters to red.  Not terribly useful, but
  73.      will show you how to set the foreground colors.
  74.  
  75.  
  76.  
  77. CHKDSK.BAT - this will tell you how many free bytes are available on a
  78.      drive.  It does a directory of a non-existant file, with the flag set
  79.      for dir to specify the number of free bytes.
  80.  
  81.  
  82.  
  83. OFF.BAT - if you need to leave the computer for a while, but don't want to
  84.      turn the monitor off, just type OFF.  This will set the foreground and
  85.      background color to black, and wait for you to press RETURN.  As soon
  86.      as you press RETURN, the colors will be restored.  If you prefer a
  87.      different default color then black characters on white text, you could
  88.      change the F(foreground) and B(background) color numbers.  Look at
  89.      COLOR.BAT to see what number goes with which color.
  90.  
  91.  
  92.  
  93. MOVE.BAT - This copies file(s) and optionally allows you to delete the
  94.      source file after you have copied it to the destination.
  95.  
  96.  
  97.  
  98. PARAM.BAT - this is for you to expirement with different numbers of
  99.      parameters, and different input strings so you can see what internal
  100.      variables get set.  You will find that there are some useful variables
  101.      not described in the documentation.  Variables are accessed in batch
  102.      files via a %:letter where letter is the variable.  Example %:a will
  103.      give you the number of parameters passed to the batch file.
  104.  
  105.  
  106.  
  107. FREE.TOS - not a batch file, but useful in a shell environment - this will
  108.      tell you how much memory is available for programs.
  109.  
  110.  
  111. -written by Ralph Walden, placed in the public domain 11/86
  112.  
  113.  
  114.