Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!apple!well!svc From: svc@well.UUCP (Leonard Rosenthol) Newsgroups: comp.sys.mac.programmer Subject: Re: help Summary: Don't do it that way!! Message-ID: <11251@well.UUCP> Date: 6 Apr 89 18:28:39 GMT References: <3369@nunki.usc.edu> Lines: 17 In article <3369@nunki.usc.edu>, anthonyt@castor.usc.edu (Anthony Tieu) writes: > I am writing an init to keep users from writing on to the hard disk. > I would like to know how to detect and obtain the last file or folder > that was created, so I can delete it. Any comments is welcome.. > It seems to me that is the DEFINATELY the wrong approch to the problem! If I were doing this (which I am not, thank god) I would simply patch _Open and _Create so that if a appl tries to open a file it is returned ReadOnly and _Create always returns an error so no files are created. You might be careful with these as this would mean that NOTHING could write to the disk (including the OS, Inits, DA's ,etc.) -- +--------------------------------------------------+ Leonard Rosenthol | GEnie : MACgician Lazerware, inc. | MacNet: MACgician UUCP: svc@well.UUCP | ALink : D0025