Using ASP to Delete Files (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


evansforsyth -> Using ASP to Delete Files (4/22/2002 12:22:24)

Maybe ASP can't do this!

No problem--using ASP and DRW with simple custom SQL to delete a database record.

However, one of the fields in the database has the name of a graphics file that was uploaded using FrontPages's File Upload component (so the full "http://" path is available). Is there ASP code (or whatever) that would automatically delete the graphics file when the database record is deleted?

The site is http://www.abfind.com/grande_prairie_cars/maintenance.asp and some data is available using:

password: test
username: test

Thanks!

Evans





rdouglass -> RE: Using ASP to Delete Files (4/22/2002 14:27:23)

If your host is Win NT/2K and you have the appropriate permissions, you should be able to use FileSystemObjects. The following link talks about manipulating .txt files, but any file could be used...

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q300982

 




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125