Forget privous message Hello Anssi you can check whether or not the file if readonly from tableinfo(table_name, TAB_INFO_READONLY) if true then close <tablename> create a file (say ChAttrib.bat) with extension ".bat" on which write attrib -H tablename.* close file run program "chatrib.bat" open <tablename> end if hope works.. >> >>Dear senior programmers, >> >>I have a minor problem that has puzzled me for some time. >>I am working on with a MapBasic program to change projection settings of a >>set of files. So far so good, but some exiting files have been set to >>ReadOnly, so the application cannot replace the existing ones. I have tried >>to Commit, Drop and Kill..(It isn't possible to get the MetaData key >visible >>either); even the Api function DeleteFile() will result #5, "Access is >>Denied" error. >>So my brief question: Is it possible to change Security settings of a file >>to get rid of ReadOnly flag or get the ReadOnly file killed other way. >> >>Thanks, >> Anssi Joutsiniemi >> >>---------------------------------------------------------------------- >>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put >>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] >> >>---------------------------------------------------------------------- >>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put >>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] > ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
