Path: utzoo!mnetor!uunet!husc6!ukma!gatech!mcnc!ece-csc!ncrcae!ncr-sd!crash!jeh From: jeh@crash.cts.com (Jamie Hanrahan) Newsgroups: comp.os.vms Subject: Re: VMS logicals help -> dir and -> sub-dir Message-ID: <2514@crash.cts.com> Date: 9 Feb 88 19:52:12 GMT References: <722@zycad.UUCP> Reply-To: jeh@crash.CTS.COM (Jamie Hanrahan) Organization: CMKRNL Press, San Diego, CA Lines: 17 Keywords: vms4.5, logicals Summary: Use [000000] for the root In article <722@zycad.UUCP> kjb@zycad.UUCP (Kevin Buchs) writes: >I would like to define a logical such that it could be used to refer to a >specific directory and could be used to refer to sub-directories of that >directory ( by appending on the [sub-dir] ). We are at VMS 4.5. > >... If I define the logical as >node::disk:[directory.] (notice the trailing dot) then this logical does >allow [sub-directory] to be appended. It however cannot be used without >appending a subdirectory, and there is no way to append a null subdirectory. Well, actually, there is, though it's not obvious how. You just use [000000] after the logical that specifies the root. For example, try $ DIRE SYS$SYSROOT:[000000] You'll get a directory of [SYS0], or [SYS1], or whatever SYS$SYSROOT points to on your node.