DECLARE SHORT SetFileAttributes IN Win32API; STRING @lpFileName, INTEGER dwFileAttributesNow in order to set the hidden attribute of an existing file, you'd do something like this (with an additional declaration):
DECLARE INTEGER GetFileAttributes IN Win32API; STRING @lpFileName #DEFINE FILE_ATTRIBUTE_HIDDEN 2 lnattribs = GetFileAttributes(@lcfile) lnattribs = BITOR(lnattribs, FILE_ATTRIBUTE_HIDDEN) llresult = (SetFileAttributes(@lcfile, lnattribs) # 0)BTW, there's a class that will do this in the Files under Win 32 and other APIs.