Click here to Skip to main content
15,850,921 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
See more:
in my project i want move specific image from 1 directory to another.
help me to solve it.
Thank u

Dear Friend,

These links will definitely help you out:-[^][^]

Don't forget to mark this as your answer if it helps you out.

Share this answer
CRDave1988 14-Feb-12 1:33am    
my 5
Varun Sareen 14-Feb-12 1:37am    
this is just a simple example on how to use the Fileinfo to move a file.
Make sure your new directory, the ASP.NET user has full permission.

private  void Move()
    String destinationFolder = @"C:\New Folder";
    FileInfo fInfo = new FileInfo("You image file path here");
    fInfo.MoveTo( Path.Combine(destinationFolder,  fInfo.Name ));
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900