code required for directory deletion recreation

Hello everybody,

i am facing problem in

i have a project directory which contain some useful files and some waste files.

project directory hierarchy is as follows

Project directory

-- directory1

subdirectory with waste files

useful files

-- directory2

subdirectory with waste files

useful files

now i want to delete the directory by copying useful files out and then after recreating the directory ,i wish to copy the same files back to their hierarchy.

Can anybody send me code for this in C#.

regards

[594 byte] By [Rajivs] at [2007-12-22]

.NET Development

Site Classified