Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: XDelusion on February 16, 2011, 05:17:17 AM

Title: Protect options
Post by: XDelusion on February 16, 2011, 05:17:17 AM
What are the options for the protect command? How do I protect and unprotect single files, also how do I protect and unprotect entire folders?
Title: Re: Protect options
Post by: runequester on February 16, 2011, 05:34:09 AM
for a single file, it should just be PROTECT [file]

so PROTECT HDD:stuff/pornstash/URMOM -d (to prevent deletion)


this is in 3.1 anyways
Title: Re: Protect options
Post by: XDelusion on February 16, 2011, 05:44:56 AM
And how do I unprotect files and folders?
Title: Re: Protect options
Post by: runequester on February 16, 2011, 06:46:49 AM
you set or remove protection bits with + and - (or ADD / SUB )

Please test this on some junk file first though ;)
Title: Re: Protect options
Post by: fishy_fiz on February 16, 2011, 07:00:26 AM
Try (for example)
protect dhx:rootpath/#? RWED to set the file to be able to read, write, edit, delete all files and folders contained from dhx:rootpath. Adding minus before the flags (RWED) I believe will disallow those options from the file.