&& do this once declareInteger GetFileAttributes in win32api string @ declareInteger SetFileAttributes in win32api string @, Integer
declareInteger MoveFile in win32api string @ src, String @ dest declareInteger CopyFile in win32api string @, string @, Integer
declareInteger DeleteFile in win32api string @
&& end once
*-------------------------------------------------------------------------- Function FileExists(FileName)
returninlist(vartype(m.FileName), T_CHARACTER) ; and (GetFileAttributes(@m.FileName) <> INVALID_FILE_ATTRIBUTES)
endfunc *-------------------------------------------------------------------------- function FileReadOnly(FileName)
return !empty(bitand(GetFileAttributes(@m.FileName), FILE_ATTRIBUTE_READONLY)) endfunc *-------------------------------------------------------------------------- function FileResetReadOnly(FileName) local fa
fa = GetFileAttributes(@m.FileName)
endfunc *-------------------------------------------------------------------------- function FileSetReadOnly(FileName) local fa
fa = GetFileAttributes(@m.FileName)