home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: RootParent.dopus5 1.2 (12.8.98)
- Replaces internal Root and Parent commands with versions that will display the
- Device List if in the root of a device.
-
- USAGE: Put it into DOpus5:Modules/ It will replace the existing
- Root and Parent command functions.
- */
- Options results
- parse arg port func srce dest args .
- address value port
-
- if func = 'init' then do
- dopus command "Root" program "RootParent" desc "Root/Devices" template "UNSELECT/S"
- dopus command "Parent" program "RootParent" desc "Parent/Devices" template "UNSELECT/S"
- exit
- end
-
- lister query srce path
- path = result
- if upper(args) = 'UNSELECT' then command source srce wait none
- if right(path,1) = ':' then command source srce wait devicelist full
- else command source srce original func
- exit
-