Results 1 to 5 of 5

Thread: [RESOLVED] Deleting a directory...[Help Needed]

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Resolved [RESOLVED] Deleting a directory...[Help Needed]

    hi guys, please how do u delete a directory without getting the "Permission Denied" error.

    please note that the directory is CHMOD 777 but it still won't delete.

    Thank You
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Deleting a directory...[Help Needed]

    have you tried rmdir()? or tried to chmod() the dir and then delete.
    My usual boring signature: Something

  3. #3

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Deleting a directory...[Help Needed]

    thanks dclamp, that did it, i was initially using the unlink() function.

    once again thank you.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Deleting a directory...[Help Needed]

    unlink is for files.
    My usual boring signature: Something

  5. #5

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: [RESOLVED] Deleting a directory...[Help Needed]

    files are all i have had to delete programmatically, i've never spent time on rmdir() because i actually thought unlink() and rmdir() will delete a folder.

    but of course rmdir() should remove directory.

    once again, Thank You.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width