Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Deleting several images from a folder at once

Posted 19 Aug 2004 12:56:21
1
has voted
19 Aug 2004 12:56:21 Olivier Florence posted:
Hi,
I am working on a property site where estate agents will post their properties, each property will have a delete date attached to it, by running an SQL query the site owner will be able to delete all out of date properties at once.
i would like to be able to remove all images attached to the properties to be deleted from the image folder. I can easly store all images name to be removed in a string but is there then an ASP object able to delete those images for me while looping through the string or is there any other way to do this (preferably in ASP JS)??

Thanking you for your help,
Olivier

Replies

Replied 20 Aug 2004 13:55:21
20 Aug 2004 13:55:21 Andrew Watson replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi,
I am working on a property site where estate agents will post their properties, each property will have a delete date attached to it, by running an SQL query the site owner will be able to delete all out of date properties at once.
i would like to be able to remove all images attached to the properties to be deleted from the image folder. I can easly store all images name to be removed in a string but is there then an ASP object able to delete those images for me while looping through the string or is there any other way to do this (preferably in ASP JS)??

Thanking you for your help,
Olivier
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

have a look at the file system object

www.w3schools.com/asp/asp_ref_filesystem.asp

:: Son, im Thirty.... ::
Replied 20 Aug 2004 14:15:33
20 Aug 2004 14:15:33 Olivier Florence replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi,
I am working on a property site where estate agents will post their properties, each property will have a delete date attached to it, by running an SQL query the site owner will be able to delete all out of date properties at once.
i would like to be able to remove all images attached to the properties to be deleted from the image folder. I can easly store all images name to be removed in a string but is there then an ASP object able to delete those images for me while looping through the string or is there any other way to do this (preferably in ASP JS)??

Thanking you for your help,
Olivier
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

have a look at the file system object

www.w3schools.com/asp/asp_ref_filesystem.asp

:: Son, im Thirty.... ::
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Thank you, very helpfull,
Olivier

Reply to this topic