home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
epm603b.zip
/
EPMSMP.ZIP
/
CHANGECD.E
< prev
next >
Wrap
Text File
|
1992-08-26
|
441b
|
13 lines
; 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