home *** CD-ROM | disk | FTP | other *** search
- ; The following will make the subdirectory from which a file is loaded
- ; the active or current subdirectory. Note that it will change the
- ; current subdirectory whenever a file is loaded. It can be changed
- ; to update the current subdirectory whenever a file is selected, by
- ; replacing the defload with defselect.
-
- defload
- dirpos=lastpos('\',.filename)
- if dirpos>1 then
- 'cd 'substr(.filename,1,dirpos-1)
- endif
-
-