home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 562.lha / RNDExec_v1.0 / ReadMe < prev    next >
Encoding:
Text File  |  1991-07-18  |  3.6 KB  |  92 lines

  1.  
  2.                               RNDExec 1.0
  3.  
  4.                                   By
  5.  
  6.                              KAP of Deja Vu
  7.  
  8. A simple utility for, hmm, whatever you feel like using it for. I use it for
  9. several things; showing random texts on my BBS and adding random texts to
  10. archieves. Use it for all your everyday random decisions :-)
  11.  
  12. You need ARP.Library in you LIB: to use this utility!
  13.  
  14. Usage: RNDExec String_to_Execute File_Pattern [More file_patterns]
  15.  
  16. String_to_execute is the string that RNDExec sends to Execute(). Insert %RND
  17. anywhere you want a randomly generated filename. If there are no %RND it
  18. will just send the string to Execute() without doing anything with it.
  19.  
  20. You also need one filepattern for each %RND. This can either be a ordinary
  21. file (or directory name) or a wildcard. If you don't use a wildcard, the
  22. filename will just be inserted. With a wildcard RNDExec will scan for all
  23. matches and then choose one of these randomly.
  24.  
  25. Some examples;
  26.  
  27. RNDExec "Copy %rnd to LogOff.Txt" TmpTexts/LogOff*.Txt
  28. This will randomly choose one of the LogOff.txt's and copy it.
  29.  
  30. Another example (when using it with my LHAdder & TC utility);
  31. LZH RNDExec "LHAdder %s %RND" AddTexts/Travel?.LZH
  32. Which will add a random Travel.LZH to every processed archieve.
  33.  
  34. A more complex example;
  35. RNDExec "Join %RND %RND as LogOn.Txt" TmpTexts/Logo? TmpText/LogOn*.Txt
  36. Which creates a logon text with both a random logo and a random text.
  37.  
  38. A more stupid example;
  39. RNDExec "%RND ReadMe" C:*
  40. This would randomly run one of your commands in C: with ReadMe as an
  41. argument. Perhaps something to do if you are extremly bored. ;-)
  42.  
  43. Don't use RNDExec within the string that you want to execute! For example;
  44. RNDExec "RNDExec %RND *" *
  45. Will not work! Because of the very simple parseing of the string. Next
  46. version might allow some way around this. But it's hardly one of the most
  47. wanted features on my list. :-)
  48.  
  49. Well as usual pretty akward docs. But what the heck you probably get the
  50. picture.
  51.  
  52. And as usual; There shouldn't be any bugs in the code. But if there is, please
  53. contact my BBS and leave me a message so I can fix it.
  54. And do call my BBS anyway!
  55.  
  56. My BBS now runs on a Amiga 2000 with 400 meg HD, 68020, 5 meg memory.
  57.  
  58.         The Schismatrix +46 51530370, Sysop KAP of Deja Vu
  59.  
  60.            Call it today, tomorrow it can be to late!!!
  61.  
  62. .-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
  63. | If you feel like making a donation, or encourage me in some other way,|
  64. = to ensure that I continue to write new utilities and support my old   =
  65. | ones. Then send it to this address;                                   |
  66. |                                                                       |
  67. =              KAP                                                      =
  68. |              Bygården, Slöta                                          |
  69. =              521 05 Vartofta                                          =
  70. |              Sweden                                                   |
  71. =                                                                       =
  72. |   Or why not support my BBS by uploading a couple of files today...   |
  73. =   Any kind of support/donation will be most appreciated and will      =
  74. |   certainly make me code even harder on all my projects.              |
  75. `-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-'
  76.  
  77. History
  78.  
  79.   News in 1.0;
  80.  
  81.   O Uses %RND instead of %S.
  82.  
  83.   O Supports several %RND.
  84.  
  85.   O Now uses ARP library for pattern matching. Used Lattice before which
  86.     was dead slow.
  87.  
  88.   O Faster, between five and ten times depending on the case.
  89.  
  90.   O Shorter. Previous version was 9364 long, now it is 1856 bytes.
  91.  
  92.