Click here to Skip to main content
15,306,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to Rename and save the image in a particular folder
Posted

open Image and use file.save(location);

with is you are able to save image in other location.
   
C#
File.Copy(strOldFilePath, strNewFilePath, boolIsOverrite); 


kindly check path must be full and absolute, like @"D:\Folder1\InnerFolfer1\File1.jpg".

use '@' (at the rate) sign before start of the path string, for escape sequence of the '\' (back slash) sign inside path string

mark as answer if solves your problem
   
Add a mention to System.IO, and then use the following statement:
C#
File.Copy("FolderOne\\" + FileName1, "FolderTwo\\" + path2, true);


hope this works for u.
   

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