Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2003
    Thanked 0 Times in 0 Posts

    Delete files using FSO

    I am looking for some example code on how to delete muliple files usoing the fso object.

    For example; I have a asp page that dispalys all the files in a given directory. Each file will have a check box next to it and if is checked then it will be deleted when user clicks on the delete button.

    Any help would be greatly appreciated.


  • #2
    Senior Coder
    Join Date
    Jun 2002
    41° 8' 52" N -95° 53' 31" W
    Thanked 0 Times in 0 Posts
    There is no better resource than this.

    I learned everything I use (daily) about FSO from this site.

    Once you determine how to delete a file, you can simply request the checked checkboxes (with the filename as the checkbox name, for instance), and delete each one.

    I'd stick them in array or something so you could loop through them and delete them easily.

    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


    Posting Permissions

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