home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!ames!tgv.com!MADISON
- From: madison@tgv.com (Matt Madison)
- Subject: Re: Request help !
- Message-ID: <1992Dec23.195628.15556@news.arc.nasa.gov>
- Sender: usenet@news.arc.nasa.gov
- Reply-To: madison@tgv.com
- Organization: The Foundation for Dinner Peas
- References: <00965847.9D4D2780.30461@VAX1.Bemidji.MSUS.EDU>
- Date: Wed, 23 Dec 1992 19:56:28 GMT
- Lines: 42
-
- In article <00965847.9D4D2780.30461@VAX1.Bemidji.MSUS.EDU>, w1c2l3@VAX1.BEMIDJI.MSUS.EDU writes:
- >I read a mail (I forgot the name of the sender) about recursive directory
- >specification, using this command :
- >
- >$ CREATE /DIR [.1]
- >$ SET FILE /ENTER=[.1]2.DIR 1.DIR
- >
- >The first time I access 1.DIR, I could see 2.DIR.
- >Then, when I access 2.DIR, I could see another 2.DIR, and that 2.DIR seemed
- >endless. Everytime I access the next one, I would always see another one,
- >kind of getting deeper and deeper.
- >
- >Can someone please explain to me what in happening ?
-
- Sure -- it's recursing. The directory entry [.1]2.DIR is really just pointing
- back to 1.DIR, so when you SET DEFAULT [.1.2], you're really seeing the contents
- of the [.1] directory all over again.
-
- >I also tried to delete the directory :
- >I delete 2.DIR first, since it's lower that 1.DIR, using this command :
- >( I did this after I access 1.DIR)
- >
- >$ SET PROT:O:D 2.DIR
- >$ DEL 2.DIR;*
-
- This is because 2.DIR is actually 1.DIR. In order to be able to delete
- a file, you must have WRITE access to the directory containing that file --
- by setting the protection to O:D, you don't have write access any more.
- So:
-
- $ SET PROTECTION=O:WD 2.DIR
- $ DELETE 2.DIR;
-
- should work. Of course, since 2.DIR is simply a directory entry, you could
- (and probably should) instead do
-
- $ SET FILE/REMOVE 2.DIR;
-
- -Matt
- --
- Matthew Madison | madison@tgv.com | +1 408 427 4366
- TGV, Inc. | 603 Mission Street | Santa Cruz, CA 95060 USA
-