home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games 1995 January / amigagames-1995-01.iso / archive / userbox / publicdomain / ged313.lha / Install / data / main / GoldED / arexx / getpath.ged < prev    next >
Text File  |  1993-09-26  |  780b  |  27 lines

  1. /* $VER: 0.9, ©1993 Dietmar Eilert. Set default path to path of text   */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT'                              /* lock GUI, gain access   */
  9. OPTIONS FAILAT 6                            /* ignore warnings         */
  10. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  11.  
  12. /* ------------------------ INSERT YOUR CODE HERE: ------------------- */
  13.  
  14. 'QUERY PATH'
  15. 'DIR NEW ' || RESULT
  16.  
  17. /* ---------------------------- END OF YOUR CODE --------------------- */
  18.  
  19. 'UNLOCK' /* VERY important: unlock GUI */
  20. EXIT
  21.  
  22. SYNTAX:
  23.  
  24. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  25. 'UNLOCK'
  26. EXIT
  27.