Read Only Attribute: attrib command

 

When a file is created in Nota Bene it is automatically assigned a read/write status or "attribute". You can protect files from accidental editing by changing its status to read only. To check on the attribute of a file type attrib filename. A number 1 or 0 will appear on the status line. 0 indicates read-write and 1 indicates read only.

 

Any file can be opened for reading only by using the read command, even those that do not have the read only attribute. See read command.

 

To change a file's attribute to read only:

 

1Press F9 to access the action line
2Type attrib d:\path\ filename,1 where d:\path are the drive and folder, and filename is the file whose attribute you want to change.
3Press F10 to change the file's attribute.

 

To change a file's attribute to read/write:

 

1Press F9 to access the action line
2Type attrib d:\path\ filename,0 where d:\path are the drive and folder, and filename is the file whose attribute you want to change.
3Press F10 to change the file's attribute.

 

This version of Nota Bene supports long file names through the menus, but the action line is limited to filenames of 8 letters plus a 3 letter extension.

 

 

See also:

read command

Opening a File for Reading: menus