From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,dbe6b8f0f831d25,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-02-06 17:58:05 PST Path: sparky!uunet!timbuk.cray.com!web!vixvax.mgi.com!cepek From: cepek@vixvax.mgi.com Newsgroups: comp.sys.dec Subject: Attn RT-11 gurus: file protect detection? Message-ID: <1992Feb6.104432.1599@vixvax.mgi.com> Date: 6 Feb 92 10:44:32 CDT Organization: Management Graphics, Inc. On RT-11, is there a way to find out if a file is protected (without having to muddle through the directory itself)? There don't seem to be any system requests for such a seemingly simple task; none of these seem to help: .CSTAT, .DSTATUS, .ENTER, .LOOKUP, .PURGE, .RENAME, etc. Note that I don't want to _change_ the protection (that's easy with .FPROT), I want to find out what it currently is for a file. In fact, the documentation says that you can do a .LOOKUP on a file that is protected and then write to it (honest! look up .FPROT). So how the heck am I supposed to know that I _shouldn't_ change the file because it is protected? KEX does it: ?KEX-W-Output file or device protected- Inspect (Y,N) ? _ (At this point, I'd even be willing to entertain something undocumented.) Thanks in advance. ,--------------------------------,___________________________ / Mike Cepek, Sr. Software Eng. / Internet: CEPEK@MGI.COM / \ Management Graphics, Inc. \ Voice: +1 612/851-6112 \ "Engage." / 1401 East 79th Street / Operator: +1 612/854-1220 / \ Minneapolis, MN 55425 USA \ Fax: +1 612/854-6913 \ `-------------------------------/___________________________/