Click here to Skip to main content
15,937,127 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

open Image and use;

with is you are able to save image in other location.
Share this answer
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
Share this answer
Add a mention to System.IO, and then use the following statement:
File.Copy("FolderOne\\" + FileName1, "FolderTwo\\" + path2, true);

hope this works for u.
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