Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 20th, 2005, 10:18 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 Deleting a Picture on The Server

Hello
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 September 8th, 2005, 01:31 AM
Authorized User
 
Join Date: Nov 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Try:

File.Delete(@Server.MapPath("/address/pics/me1.jpg");



-------------------------------
World only exists into your mind.





Similar Threads
Thread Thread Starter Forum Replies Last Post
managing picture using oracle or sql server vedant Oracle 3 January 28th, 2008 08:59 PM
Store an picture in SQL Server ashoka_klt SQL Server 2000 1 October 29th, 2006 11:27 PM
How to insert a Picture in SQL Server using VB 6.0 swadhinm Pro VB Databases 0 September 21st, 2005 06:52 AM
Deleting a Picture on The Server zaeem Classic ASP Databases 1 May 6th, 2005 11:32 AM





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