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:
Hi,
in my project i want move specific image from 1 directory to another.
help me to solve it.
Thank u
Posted

Dear Friend,

These links will definitely help you out:-

http://msdn.microsoft.com/en-us/library/cc148994.aspx[^]

http://msdn.microsoft.com/en-us/library/system.io.file.move.aspx[^]

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

Thanks
 
Share this answer
 
Comments
CRDave1988 14-Feb-12 1:33am    
my 5
Varun Sareen 14-Feb-12 1:37am    
thanks
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.

C#
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