home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newc_dev / cdrun370.lha / CDRun.doc < prev   
Text File  |  1992-04-01  |  3KB  |  120 lines

  1.  
  2.             CDRun V37.0 - Copyright (C) 1992 Jesper Kehlet
  3.             ==============================================
  4.  
  5.      Combined CD & Run + extension by Jesper Kehlet - 26 Mar 1992
  6.      ============================================================
  7.  
  8.  
  9.  
  10.  
  11. THIS PROGRAM REQUIRES AT LEAST V37 DOS LIBRARY!!!
  12. Use TAB SIZE=4 for both the source and this file.
  13.  
  14.  
  15.  
  16.  
  17.                                  Why?
  18.                                  ====
  19.  
  20. Things  started with e.g. FKey may not always have the right directory
  21. for home dir when started, so this solves it!
  22.  
  23.  
  24.  
  25.  
  26.                                  How?
  27.                                  ====
  28.  
  29. Format:            CDRun [DIR] <Homedirectory [COMMAND] <Commandspec>
  30.  
  31. Template:        DIR,COMMAND/F
  32.  
  33. Purpose:        To CD & Run in one move
  34.  
  35. Path:            C:CDRun
  36.  
  37. Specification:    To  CD  &  Run,  just  CDRun  with  dir and command as
  38.                 options.
  39.  
  40. Results:        FAIL:    Could not open DOS library (WHAT?!?)
  41.                 ERROR:    Not a valid directory or command
  42.                 OK:        Guess what...  All went well!
  43.  
  44. Bugs:            None known
  45.  
  46. Examples:
  47.                     1> CDRun
  48.  
  49.                 will print out the current directory.
  50.  
  51.                     1> CDRun DF0:
  52.  
  53.                 will change current directory to DF0:
  54.  
  55.                     1> CDRun C:List LFORMAT="%s%s"
  56.  
  57.                 will run the C:List command with options
  58.  
  59.                     1> CDRun DF0: C:List LFORMAT="%s%s"
  60.  
  61.                 will  run  the  C:List  command with options and do it
  62.                 with DF0: as home directory
  63.  
  64.  
  65.  
  66.  
  67.                                 Where?
  68.                                 ======
  69.  
  70. It  will  be  most useful for running programs from e.g.  FKey, an old
  71. ToolManager  or  similar  programs,  that  does not allow you to set a
  72. starting  directory.   Other than that, it is a full blown replacement
  73. for  both  CD  and  Run  in one command.  Even though it cannot (YET!)
  74. compete  with  the  patternmatching  in  the  built in CD, it is still
  75. sufficient for most people.
  76.  
  77.  
  78.  
  79.  
  80.                               What else?
  81.                               ==========
  82.  
  83. This code is a GREAT example of how you use some of the new AmigaDOS &
  84. exec  functions  introduced  in  2.0  and  onwards - amongst these are
  85. AllocVec(),  FreeVec(),  SetCurrentDirName()  and  last but not least:
  86. SystemTagList() - the goodie!
  87.  
  88. This  one  is  entirely  pure.   Does  even  handle DOS BSTR's without
  89. getting in direct physical contact with them - ain't V37 great?  I had
  90. a  BALL  trying to find out, how you tell DOS, that it has changed dir
  91. and  that  it  should  update  you prompt if that contains information
  92. about  this,  but  I  managed  - yipee!  There is still a problem with
  93. WShell,  but  I'll  get  to  fix  this as soon as possible - don't you
  94. worry!
  95.  
  96. If you wish to redirect the output of the command being run, you must,
  97. unlike  Run,  put  this  redirection in the command.  Specifying >NIL:
  98. right  after  CDRun will only affect CDRun's output, not your external
  99. command!
  100.  
  101.  
  102.  
  103.  
  104.                               Postcards?
  105.                               ==========
  106.  
  107. I'm  not  some starving student eager to get all you got, but knowing,
  108. that  my  program  is  being  used  really makes me happy (and my ego,
  109. too!)...
  110.     This  program  is  'Postcardware'  - a concept introduced by Klaus
  111. Seistrup  here  in  Denmark  - so if you find this program useful, you
  112. MUST send me a postcard!  It should be addressed to:
  113.  
  114. Jesper Kehlet
  115. Bredengen 19 - Svogerslev
  116. 4000  Roskilde
  117. Denmark
  118.  
  119. FIDO 2:231/84.7
  120.