Set file read-only attribute

Command group Flag affected Reversible Execute on client Platform(s)
External commands YES NO NO Windows,Linux


Set file read-only attribute (pathread-flagReturns err-code


Note: The flag is set according to whether Omnis was able to make a call to this external command.

This command lets you set the read-only attribute of the file specified in path-name. If you set the read-flag parameter to kTrue the file is set to read-only, or if kFalse the file is set to read/write.

It returns an error code (See Error Codes), or zero if no error occurs.


; set the read-only attribute of lPathname to kTrue
Calculate lPathname as con(sys(115),’libraries’,sys(9),'mylibrary.lbs')
Set file read-only attribute (lPathname,kTrue)