View Full Version : Delete files using FSO

02-10-2003, 09:44 PM
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.


02-11-2003, 01:34 AM
There is no better resource than this (http://www.w3schools.com/asp/met_deletefile.asp).

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.