On Jun 25, 2006, at 11:48 AM, Roger Cudney wrote:

Hi all,

I am getting a strange LastErrorCode after attempting
(unsuccesfully) to delete an invisible file placed in
the application support folder. The code is as simple
as this:



f=ApplicationSupportFolder.child("blah").child(".blah
Reg")
      if f.exists then
        f.Delete
        MsgBox str(f.LastErrorCode)
     end if

The problem is that I cannot delete it; furthermore,
the lasterrorcode is -5000, which is not one of the
possible errors listed in the RB's language reference
for lasterrorcode. Any ideas?

If it's a non-standard error, it will be whatever the OS tells us it is. In this case, MacErrors.h shows:

afpAccessDenied = -5000, /* Insufficient access privileges for operation */

So, I'm guessing your program doesn't have enough permissions to delete the file.

HTH,
Jon


--
Jonathan Johnson
REAL Software, Inc.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to