I want select some folder through FileUpload control and delete all the files in that folder and replace other files from folder X?

Posted by Gaddad under ASP.NET on 8/24/2009 | Views : 2690 | Status : [Member] | Replies : 1
I want select some folder through FileUpload control and delete all the files in that folder and replace other files from folder X?

Please get sample code regarding....

Thanks in advance..




Responses

Posted by: Vuyiswamb on: 8/25/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Morning Gaddad

Always tell people to take things Step by Step when they have a challenge to solve. In this Challenge you are having , the First thing you need to start asking your self is

Do i know how to Delete a File in C# ? if you know then you write it down as a method , it does not matter where the File is. and the Second thing is how do i copy the Files. All this must tell you that

System.io;

i needed. There is Great article that has exactly what you need.

http://msdn.microsoft.com/en-us/library/system.io.file.delete.aspx


Thank you for Posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Gaddad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response