home *** CD-ROM | disk | FTP | other *** search
- SetPrefix (C) Adam Goodfellow 1992 (Arcade User #254 - Elatar)
-
- Sets an OS variable to the directory part of an object name. It is
- intelligent in that if the object is a directory anyway, the whole path name
- will be returned.
-
- Usage: SetPrefix <varname> <objname>
-
- Example:
- SetPrefix temp$dir adfs::harddisc4.$.temp.filename
- temp$dir will be set to "adfs::harddisc4.$.temp"
-
- This is most useful for use with the DDE *Prefix command which sets the
- current directory local to a particular task. For example:
-
- SetPrefix Prefix$Dir %*0
- NoError FreeRMA
- Prefix <Prefix$Dir>
- taskwindow "AMU -f%*0" -wimpslot 1280k -quit
-
- The above is from a desktop front end I did for AMU. Basically the whole
- front end consists of the above commands in an obeyfile, with a runtype
- alias setup to run the above obeyfile when I double click on my make files.
-
- On entry to the obey file %*0 is the name of the obey file I double-clicked
- on. The rest merely strips the leafname from %*0 and sets the result as the
- current directory for the duration of this task, allowing AMU to work in its
- normal absolute directory context.
-
-
-