How to delete files?

Results 1 to 2 of 2

Thread: How to delete files?

  1. #1
    Killa~B Guest

    Default How to delete files?

    Hi everyone!<BR><BR>I allowed users to upload their files in my webserver, and of course I store the reference (filenames) in my database. The problem comes during housekeeping, when I delete the unwanted record in the database, I want to delete the respective physical files as well. Is there any way I can do this? Can anybody point me to the right direction?<BR>Any help is greatly appreciated.<BR><BR>thanks,<BR>Killa~B

  2. #2
    simhan Guest

    Default RE: How to delete files?

    Get the physical path of the files. Then, loop thro the filenames from the database. For each filename, create a FileSystemObject in the mapped path and use its delete function.

Posting Permissions

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