home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / s / sub40.zip / SUB.TXT < prev   
Text File  |  1993-02-17  |  2KB  |  50 lines

  1.                                   SUB v4.0
  2.                               Short Text File
  3.                         Written by Michael MacDonald
  4.                                  02/13/93
  5.  
  6. SUB is a compiled Clipper PRG program. It is 'freeware'. No fee is expected or
  7. will be accepted. It's purpose is to go through RoboComm's NEW40.DBF (the
  8. database that keeps track of new files on the BBS's you call).  It allows you
  9. to change the file extension of the files in the Available Files list.  It's
  10. syntax is simple, but VERY important.  It does not contain protection against
  11. errors like typing NO parameters on the command line.
  12.  
  13.            The correct syntax is SUB <ext to replace> <replacement>
  14.  
  15. As an example, If you wanted to change all filenames with ARJ extensions to
  16. filenames with ZIP extensions, the command would be:
  17.  
  18.                                 SUB arj zip
  19.  
  20. The syntax is not case sensitive and no '/' are required.  A word of caution.
  21. If you were to run the program leaving out the replacement extension like so:
  22.  
  23.                                 SUB arj
  24.  
  25. all the files with ARJ extensions would end up with exactly what you told the
  26. program to do, leave them with no extension at all.  I realize that with more
  27. effort I could have put in some error checking to prevent this.  But, hey,
  28. they're free and I didn't fell like making a project out of it.   Not to
  29. worry, however.  For instance, if you ran SUB with no parameters, it would
  30. turn all your filenames into FILE. with NO extension.  The same thing would
  31. happen if you ran SUB with one parameter, the one to look for, but not the one
  32. to change it to.  All the filenames that had the extension you listed would
  33. have there extension removed.  BUT, simply run SUB again like this:
  34.  
  35.                                   SUB "" ZIP
  36.  
  37. and all the filenames with NO extension would end up with a ZIP extension.  So
  38. if you accidentally run SUB on your filelist and put in no extension, or only
  39. one, just run it again like above and it will interpret the "" as meaning no
  40. extension and turn it into one with a ZIP extension.
  41.  
  42.  
  43. SUB can reside anywhere, but you must be in the directory where you keep your
  44. RoboComm files when you invoke it. The source code has been included for any
  45. Clipper users that wish to play with it.
  46.  
  47.                              Michael MacDonald
  48.                           4273 148th Ave NE E-104
  49.                             Bellevue, WA 98007
  50.