i need to move jpg image files from one place to another place.
cut and past.
lets say the folser "c:/abc/1" kave 10 images .
then what i have to do is when i run my aplication on inside that "c:/abc/1" all the images on that folder must be cut and pase toa another folder @ "D:/dani/web/"
so i have no idea on this but i have done some work on it.
so if their any one know about this plz help me.
private void button1_Click(object sender, EventArgs e)
{
int filecount = 0;
foreach (string sfiles in Directory.GetFiles("C:\\MyFolder"))
{
string extension = sFile.Substring(sFile.LastIndexOf("."));
if (extension == ".jpg" || extension == ".JPG")
{
}
}