I have an image database in which an image name is stored in the database. I would like to be able to remove the actual file when I remove the record from the database.
Any ideas on how to remove files from a directory using ASP?
use the code above, but before deleting check image file attributes. if it's read-only, you won't be able to delete it. remove read-only and then delete it
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.