| Function group | Execute on client | Platform(s) |
| FileOps | NO | All |
FileOps.$setfileinfo(cPath,iInformationFlag,vInfoValue,...)
Sets file information for the file named cPath.
You can use $setfileinfo() to change the read-only and hidden status of a file. You pass the relevant kFileOpsInfo... constant in iInfoFlag, and the new value in vInfoSetting. If desired, you can then pass the other constant and its new value in the next two parameters. The function returns an error code, or zero if successful: see the FileOps function error codes.
DoFileOps.$setfileinfo('c:\omnis\meths.txt',,,,)ReturnslError# sets the file 'meths.txt' to be read-only and not hidden