Sets the file permissions to read-only.
function FileSetReadOnly(const FileName: string; ReadOnly: Boolean): Boolean;
Boolean FileSetReadOnly(const AnsiString FileName, Boolean ReadOnly);
SysUtils
FileSetReadOnly attempts to set the read-only status of the specified file.
FileName is the name of the file to alter.
ReadOnly indicates the status to assign to the file.
FileSetReadOnly returns true if the operation was successful and false if an error occurred.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|