1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Omaha, Nebraska
    Rep Power

    Question Logic question concerning delete a directory with files

    I understand how to delete files within a directory using the Scripting.FileSystemObject.

    However, how can I delete a directory using ASP 2.0 on an older IIS 4.0 server?

    Do I need to:

    1. Delete all the files within the directory.
    2. Change the directory's permissions.
    3. Delete the directory.

    Am I able to delete a directory without changing the permissions?

    Can I delete a directory with files inside the directory or does the directory need to be empty?

    Thank you for taking the time to read this post.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    The web server user account needs the proper permissions to the directory and files, then you should follow the steps you listed.

IMN logo majestic logo threadwatch logo seochat tools logo