home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / proasm / rexx / dopus / addasxresidents.dopus < prev    next >
Text File  |  1996-04-29  |  678b  |  30 lines

  1. /* Add selected files as Residents to ASX */
  2. /* for Directory Opus 4, using ASX        */
  3. /* 06.07.93 by Daniel Weber               */
  4.  
  5.  
  6. OPTIONS RESULTS
  7. dopusPort = ADDRESS()            /* get port name of DOpus    */
  8.  
  9. status 3                /* get #of active window     */
  10. win = result
  11. status 13 win                /* get actual selected drive */
  12. path = result
  13. getselectedfiles '+'            /* get selected files from DOpus */
  14. IF RC ~= 0 THEN EXIT(0)
  15. files = result
  16.  
  17. DO WHILE files ~=''
  18.   PARSE VAR files txtfile '+' files
  19.  
  20.   ADDRESS (''||dopusPort)        /* show file name  */
  21.   toptext 'AddResident 'path''txtfile
  22.  
  23.   ADDRESS 'asx_rexx'
  24.   AddResident path''txtfile        /* add selected files as Residents */
  25.  
  26. END
  27.  
  28. EXIT(0)
  29.  
  30.