Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2005, 10:56 AM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default Delete a file on the server

Hello
This is My 4th message, please responsd. PLZ PLZ PLZ PLZ
I am building online address book sort of thing where members can upload their pictures.
Now when members update their member information along with the picture, the previous picture stays at the server. The picture path is something like” C:\Inetpub\wwwroot\address\pics\me1.jpg”, now tell me by using ASP how can I Delete the previous picture of the member at the server.

Millions of thanx in advance
Zaeem Sherazi


Zaeem Sherazi
__________________
Zaeem Sherazi
 
Old April 23rd, 2005, 04:16 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

You can use fileSystemObject to delete the files from the folder.

Om Prakash
 
Old April 23rd, 2005, 10:26 PM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default

thanx Om Prakash I really appreciate your reply, but could you please tell me that peace of line(Code), by using that code I can delete file(Picture) on the server, As I am new to ASP.
I am really looking forward to hear from you.
Bye

Zaeem Sherazi
 
Old April 26th, 2005, 06:59 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Please check the following for more details:
http://www.w3schools.com/asp/met_deletefile.asp



Om Prakash
 
Old April 26th, 2005, 10:00 PM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default

thanx Om Prakash. I really appreciate you help towards me.
Bye

Zaeem Sherazi





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot delete file from Remote server. snowbydave1 Pro PHP 0 March 7th, 2007 02:57 AM
Cannot delete file from Remote server. snowbydave1 PHP Databases 0 March 7th, 2007 02:54 AM
Cannot delete file from Remote server. snowbydave1 PHP FAQs 0 March 7th, 2007 02:52 AM
Delete a file on the server zaeem Classic ASP Basics 0 April 20th, 2005 10:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.